class TwitterAPI
- TwitterAPI
- SimpleOAuth::Consumer
- Reference
- Object
Defined in:
twitter_auth.crInstance Method Summary
-
#invalidate_token(token : TokenPair)
Revokes an issued OAuth Access Token by presenting its client credentials.
- #upgrade_token(token : String, verifier : String) : TokenPair
-
#verify(token : TokenPair)
Returns a representation of the requesting user if authentication was successful; raises an exception if not.
Instance Method Detail
def invalidate_token(token : TokenPair)
#
Revokes an issued OAuth Access Token by presenting its client credentials.
Once an OAuth Access Token has been invalidated, new creation attempts will yield a different OAuth Access Token and usage of the invalidated token will no longer be allowed.
See the Twitter API reference
def verify(token : TokenPair)
#
Returns a representation of the requesting user if authentication was successful; raises an exception if not. Use this method to test if supplied user credentials are valid.
See the Twitter documentation