C# Class CoreTweet.Tokens

Represents the OAuth tokens.
Inheritance: TokensBase
Afficher le fichier Open project: CoreTweet/CoreTweet Class Usage Examples

Méthodes publiques

Méthode Description
Create ( string consumerKey, string consumerSecret, string accessToken, string accessSecret, long userID, string screenName = null ) : Tokens

Makes an instance of Tokens. Tokens.Create will not fetch UserId and ScreenName automatically. If you need them, call Rest.Account.VerifyCredentials(object).

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

Creates a string for Authorization header for OAuth 1.0A.

ToString ( ) : string

Returns a string that represents the current Tokens.

Tokens ( ) : System

Initializes a new instance of the Tokens class.

Tokens ( Tokens e ) : System

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

Method Details

Create() public static méthode

Makes an instance of Tokens. Tokens.Create will not fetch UserId and ScreenName automatically. If you need them, call Rest.Account.VerifyCredentials(object).
public static Create ( string consumerKey, string consumerSecret, string accessToken, string accessSecret, long userID, string screenName = null ) : Tokens
consumerKey string The consumer key.
consumerSecret string The consumer secret.
accessToken string The access token.
accessSecret string The access secret.
userID long The user's ID.
screenName string The user's screen name.
Résultat Tokens

CreateAuthorizationHeader() public méthode

Creates a string for Authorization header for OAuth 1.0A.
public CreateAuthorizationHeader ( MethodType type, Uri url, object>.IEnumerable parameters ) : string
type MethodType The Type of HTTP request.
url System.Uri The URL.
parameters object>.IEnumerable The parameters.
Résultat string

ToString() public méthode

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

Tokens() public méthode

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

Tokens() public méthode

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