class

TwitterAPI

Inherits SimpleOAuth::Consumer < Reference < Object

Instance methods

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

Source
upgrade_token(token : String, verifier : String) : TokenPair
Source
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

Source