C# Class CoreTweet.OAuth2Token

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

Public Methods

Method 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 method

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.
return OAuth2Token

CreateAuthorizationHeader() public method

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.
return string

OAuth2Token() public method

Initializes a new instance of the OAuth2Token class.
public OAuth2Token ( ) : System
return System

OAuth2Token() public method

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

ToString() public method

Returns a string that represents the current Tokens.
public ToString ( ) : string
return string