lib/twitter/rest/oauth.rb
# Allows a registered application to revoke an issued OAuth 2 Bearer Token by presenting its client credentials.
#
# @see https://dev.twitter.com/rest/reference/post/oauth2/invalidate_token
# @rate_limited No
# @authentication Required
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [String] The token string.
Allows a registered application to revoke an issued OAuth 2 Bearer Token by presenting its client credentials.
Allows a registered application to revoke an issued OAuth 2 Bearer Token by presenting its client credentials .
def reverse_token
        options = {x_auth_mode: 'reverse_auth'}
        url = 'https://api.twitter.com/oauth/request_token'
        auth_header = Twitter::Headers.new(self, :post, url, options).oauth_auth_header.to_s
        HTTP.headers(authorization: auth_header).post(url, params: options).to_s
      end
def reverse_token options = { x_auth_mode : 'reverse_auth' } url = 'https://api.twitter.com/oauth/request_token' auth_header = Twitter :: Headers . new ( self , :post , url , options ) . oauth_auth_header . to_s HTTP . headers ( authorization : auth_header ) . post ( url , params : options ) . to_s end
Allows a registered application to revoke an issued OAuth 2 Bearer Token by presenting its client credentials.
Allows a registered application to revoke an issued OAuth 2 Bearer Token by presenting its client credentials .
The token string.
The token string .
String
[Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
[ Twitter :: Error :: Unauthorized ] Error raised when supplied user credentials are not valid .
see
None
rate_limited
None
authentication
None