Sha256: 3b61e86eaa5a09ce5a02103913716d095b6fec8ac7aae9f616db747969ab51d6
Contents?: true
Size: 1.15 KB
Versions: 4
Compression:
Stored size: 1.15 KB
Contents
# frozen_string_literal: true module MediaWiktory::Wikipedia module Actions # 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. # class Unlinkaccount < MediaWiktory::Wikipedia::Actions::Post # Use this authentication request, by the id returned from action=query&meta=authmanagerinfo with amirequestsfor=unlink. # # @param value [String] # @return [self] def request(value) merge(request: value.to_s) end # A "csrf" token retrieved from action=query&meta=tokens # # @param value [String] # @return [self] def token(value) merge(token: value.to_s) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems