class MediaWiktory::Wikipedia::Actions::Unlinkaccount

Remove a linked third-party account from the current user.

Usage:

“`ruby api.unlinkaccount.request(value).perform # returns string with raw output # or api.unlinkaccount.request(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

request(value) click to toggle source

Use this authentication request, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=unlink.

@param value [String] @return [self]

# File lib/mediawiktory/wikipedia/actions/unlinkaccount.rb, line 26
def request(value)
  merge(request: 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/unlinkaccount.rb, line 34
def token(value)
  merge(token: value.to_s)
end