Provides a set of static (Shared in Visual Basic) methods for OAuth 2 Authentication.
More...
Provides a set of static (Shared in Visual Basic) methods for OAuth 2 Authentication.
◆ GetToken()
Gets the OAuth 2 Bearer Token.
- Parameters
-
consumerKey | The consumer key. |
consumerSecret | The consumer secret. |
options | The connection options for the request. |
- Returns
- The tokens.
◆ GetTokenAsync()
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
-
consumerKey | The consumer key. |
consumerSecret | The consumer secret. |
options | The connection options for the request. |
cancellationToken | The cancellation token. |
- Returns
- The task object representing the asynchronous operation.
The Result property on the task object returns the tokens.
◆ InvalidateToken()
static string CoreTweet.OAuth2.InvalidateToken |
( |
this OAuth2Token |
tokens | ) |
|
|
inlinestatic |
Invalidates the OAuth 2 Bearer Token.
- Parameters
-
- Returns
- The invalidated token.
◆ InvalidateTokenAsync()
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
-
tokens | An instance of OAuth2Tokens. |
cancellationToken | The 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: