C# Класс CoreTweet.OAuth2

Показать файл Открыть проект

Открытые методы

Метод Описание
GetToken ( string consumerKey, string consumerSecret, CoreTweet.ConnectionOptions options = null ) : OAuth2Token

Gets the OAuth 2 Bearer Token.

GetTokenAsync ( string consumerKey, string consumerSecret, CoreTweet.ConnectionOptions options = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Gets the OAuth 2 Bearer Token as an asynchronous operation.

InvalidateToken ( this tokens ) : string

Invalidates the OAuth 2 Bearer Token.

InvalidateTokenAsync ( this tokens, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Invalidates the OAuth 2 Bearer Token as an asynchronous operation.

Приватные методы

Метод Описание
CreateCredentials ( string consumerKey, string consumerSecret ) : string
GetAccessTokenUrl ( CoreTweet.ConnectionOptions options ) : Uri
GetInvalidateTokenUrl ( CoreTweet.ConnectionOptions options ) : Uri

Описание методов

GetToken() публичный статический Метод

Gets the OAuth 2 Bearer Token.
public static GetToken ( string consumerKey, string consumerSecret, CoreTweet.ConnectionOptions options = null ) : OAuth2Token
consumerKey string The consumer key.
consumerSecret string The consumer secret.
options CoreTweet.ConnectionOptions The connection options for the request.
Результат OAuth2Token

GetTokenAsync() публичный статический Метод

Gets the OAuth 2 Bearer Token as an asynchronous operation.
public static GetTokenAsync ( string consumerKey, string consumerSecret, CoreTweet.ConnectionOptions options = null, CancellationToken cancellationToken = default(CancellationToken) ) : Task
consumerKey string The consumer key.
consumerSecret string The consumer secret.
options CoreTweet.ConnectionOptions The connection options for the request.
cancellationToken System.Threading.CancellationToken The cancellation token.
Результат Task

InvalidateToken() публичный статический Метод

Invalidates the OAuth 2 Bearer Token.
public static InvalidateToken ( this tokens ) : string
tokens this An instance of .
Результат string

InvalidateTokenAsync() публичный статический Метод

Invalidates the OAuth 2 Bearer Token as an asynchronous operation.
public static InvalidateTokenAsync ( this tokens, CancellationToken cancellationToken = default(CancellationToken) ) : Task
tokens this An instance of OAuth2Tokens.
cancellationToken System.Threading.CancellationToken The cancellation token.
Результат Task