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.
# @param access_token [String] The bearer token to revoke.
# @param options [Hash] A customizable set of options.
# @return [String] The invalidated token. token_type should be nil.
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 invalidate_token(access_token, options = {})
        options = options.dup
        options[:access_token] = access_token
        perform_post('/oauth2/invalidate_token', options)[:access_token]
      end
def invalidate_token ( access_token , options = { } ) options = options . dup options [ :access_token ] = access_token perform_post ( '/oauth2/invalidate_token' , options ) [ :access_token ] 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 invalidated token. token_type should be nil.
The invalidated token . token_type should be nil .
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 .
access_token
The bearer token to revoke.
The bearer token to revoke .
options
A customizable set of options.
A customizable set of options .
see
None
rate_limited
None
authentication
None