CoreTweet  0.7.0
Yet another .NET Twitter Library
Static Public Member Functions | List of all members
CoreTweet.OAuth2 Class Reference

Provides a set of static (Shared in Visual Basic) methods for OAuth 2 Authentication. More...

Static Public Member Functions

static Task< OAuth2TokenGetTokenAsync (string consumerKey, string consumerSecret, ConnectionOptions options=null, CancellationToken cancellationToken=default(CancellationToken))
 Gets the OAuth 2 Bearer Token as an asynchronous operation. More...
 
static Task< string > InvalidateTokenAsync (this OAuth2Token tokens, CancellationToken cancellationToken=default(CancellationToken))
 Invalidates the OAuth 2 Bearer Token as an asynchronous operation. More...
 
static OAuth2Token GetToken (string consumerKey, string consumerSecret, ConnectionOptions options=null)
 Gets the OAuth 2 Bearer Token. More...
 
static string InvalidateToken (this OAuth2Token tokens)
 Invalidates the OAuth 2 Bearer Token. More...
 

Detailed Description

Provides a set of static (Shared in Visual Basic) methods for OAuth 2 Authentication.

Member Function Documentation

static OAuth2Token CoreTweet.OAuth2.GetToken ( string  consumerKey,
string  consumerSecret,
ConnectionOptions  options = null 
)
inlinestatic

Gets the OAuth 2 Bearer Token.

Parameters
consumerKeyThe consumer key.
consumerSecretThe consumer secret.
optionsThe connection options for the request.
Returns
The tokens.
static Task<OAuth2Token> CoreTweet.OAuth2.GetTokenAsync ( string  consumerKey,
string  consumerSecret,
ConnectionOptions  options = null,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inlinestatic

Gets the OAuth 2 Bearer Token as an asynchronous operation.

Parameters
consumerKeyThe consumer key.
consumerSecretThe consumer secret.
optionsThe connection options for the request.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the tokens.

static string CoreTweet.OAuth2.InvalidateToken ( this OAuth2Token  tokens)
inlinestatic

Invalidates the OAuth 2 Bearer Token.

Parameters
tokensAn instance of OAuth2Token.
Returns
The invalidated token.
static Task<string> CoreTweet.OAuth2.InvalidateTokenAsync ( this OAuth2Token  tokens,
CancellationToken  cancellationToken = default(CancellationToken) 
)
inlinestatic

Invalidates the OAuth 2 Bearer Token as an asynchronous operation.

Parameters
tokensAn instance of OAuth2Tokens.
cancellationTokenThe cancellation token.
Returns
The task object representing the asynchronous operation.

The Result property on the task object returns the invalidated token.


The documentation for this class was generated from the following files: