C# Class CoreTweet.OAuth2Token

The OAuth2 token, which is usually used for Application-only authentication.
Inheritance: TokensBase
Afficher le fichier Open project: CoreTweet/CoreTweet Class Usage Examples

Méthodes publiques

Méthode Description
Create ( string consumerKey, string consumerSecret, string bearer ) : OAuth2Token

Makes an instance of OAuth2Tokens.

CreateAuthorizationHeader ( MethodType type, Uri url, object>.IEnumerable parameters ) : string

Creates a string for Authorization header including bearer token.

OAuth2Token ( ) : System

Initializes a new instance of the OAuth2Token class.

OAuth2Token ( OAuth2Token e ) : System

Initializes a new instance of the OAuth2Token class with a specified token.

ToString ( ) : string

Returns a string that represents the current Tokens.

Method Details

Create() public static méthode

Makes an instance of OAuth2Tokens.
public static Create ( string consumerKey, string consumerSecret, string bearer ) : OAuth2Token
consumerKey string The consumer key.
consumerSecret string The consumer secret.
bearer string The bearer token.
Résultat OAuth2Token

CreateAuthorizationHeader() public méthode

Creates a string for Authorization header including bearer token.
public CreateAuthorizationHeader ( MethodType type, Uri url, object>.IEnumerable parameters ) : string
type MethodType The type of the HTTP request.
url Uri The URL.
parameters object>.IEnumerable The parameters.
Résultat string

OAuth2Token() public méthode

Initializes a new instance of the OAuth2Token class.
public OAuth2Token ( ) : System
Résultat System

OAuth2Token() public méthode

Initializes a new instance of the OAuth2Token class with a specified token.
public OAuth2Token ( OAuth2Token e ) : System
e OAuth2Token The token.
Résultat System

ToString() public méthode

Returns a string that represents the current Tokens.
public ToString ( ) : string
Résultat string