C# 클래스 CoreTweet.OAuth2Token

The OAuth2 token, which is usually used for Application-only authentication.
상속: TokensBase
파일 보기 프로젝트 열기: CoreTweet/CoreTweet 1 사용 예제들

공개 메소드들

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

메소드 상세

Create() 공개 정적인 메소드

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.
리턴 OAuth2Token

CreateAuthorizationHeader() 공개 메소드

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.
리턴 string

OAuth2Token() 공개 메소드

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

OAuth2Token() 공개 메소드

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

ToString() 공개 메소드

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