class MediaWiktory::Wikipedia::Actions::Cxtoken

Get JWT tokens to authenticate with cxserver.

Usage:

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

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/cxtoken.rb, line 26
def token(value)
  merge(token: value.to_s)
end