class TwitterAPI

Defined in:

twitter_auth.cr

Instance Method Summary

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


[View source]
def upgrade_token(token : String, verifier : String) : TokenPair #

[View source]
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


[View source]