C# Класс CoreTweet.Tokens

Represents the OAuth tokens.
Наследование: TokensBase
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

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

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.
Результат Tokens

CreateAuthorizationHeader() публичный Метод

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.
Результат string

ToString() публичный Метод

Returns a string that represents the current Tokens.
public ToString ( ) : string
Результат string

Tokens() публичный Метод

Initializes a new instance of the Tokens class.
public Tokens ( ) : System
Результат System

Tokens() публичный Метод

Initializes a new instance of the Tokens class with a specified token.
public Tokens ( Tokens e ) : System
e Tokens The token.
Результат System