C# 클래스 CoreTweet.Tokens

Represents the OAuth tokens.
상속: TokensBase
파일 보기 프로젝트 열기: CoreTweet/CoreTweet 1 사용 예제들

공개 메소드들

메소드 설명
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