class MediaWiktory::Wikipedia::Actions::Massmessage
Send a message to a list of pages.
Usage:
“`ruby api.massmessage.spamlist(value).perform # returns string with raw output # or api.massmessage.spamlist(value).response # returns output parsed and wrapped into Response
object “`
See {Base} for generic explanation of working with MediaWiki actions and {MediaWiktory::Wikipedia::Response} for working with action responses.
All action's parameters are documented as its public methods, see below.
Public Instance Methods
message(value)
click to toggle source
Message body text.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/massmessage.rb, line 42 def message(value) merge(message: value.to_s) end
spamlist(value)
click to toggle source
Page containing list of pages to leave a message on.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/massmessage.rb, line 26 def spamlist(value) merge(spamlist: value.to_s) end
subject(value)
click to toggle source
Subject line of the message.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/massmessage.rb, line 34 def subject(value) merge(subject: value.to_s) end
token(value)
click to toggle source
A “csrf” token retrieved from action=query&meta=tokens
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/massmessage.rb, line 50 def token(value) merge(token: value.to_s) end