class MediaWiktory::Wikipedia::Actions::Resetpassword
Send a password reset email to a user.
Usage:
“`ruby api.resetpassword.user(value).perform # returns string with raw output # or api.resetpassword.user(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
email(value)
click to toggle source
Email address of the user being reset.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/resetpassword.rb, line 34 def email(value) merge(email: 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/resetpassword.rb, line 42 def token(value) merge(token: value.to_s) end
user(value)
click to toggle source
User being reset.
@param value [String] @return [self]
# File lib/mediawiktory/wikipedia/actions/resetpassword.rb, line 26 def user(value) merge(user: value.to_s) end