C# 클래스 SimpleOAuth.Extensions

Contains all extensions required to kick this magic off.
파일 보기 프로젝트 열기: cbenard/SimpleOAuth.Net

공개 메소드들

메소드 설명
GetOAuthTokens ( this request ) : SimpleOAuth.Tokens

For the Request and Access Token stages, makes the request and parses out the OAuth tokens from the server.

You typically call this when making a request to get the users access tokens and combine this with the Tokens.MergeWith function.

GetOAuthTokensAsync ( this request, Exception>.Action callback ) : void

For the Request and Access Token stages, makes the request and parses out the OAuth tokens from the server.

You typically call this when making a request to get the users access tokens and combine this with the Tokens.MergeWith function.

SignRequest ( this request ) : OAuthRequestWrapper

Begin signing this WebRequest object with OAuth.

SignRequest ( this request, SimpleOAuth.Tokens withTokens ) : OAuthRequestWrapper

Begin signing this WebRequest object with OAuth using the tokens provided.

메소드 상세

GetOAuthTokens() 공개 정적인 메소드

For the Request and Access Token stages, makes the request and parses out the OAuth tokens from the server.
You typically call this when making a request to get the users access tokens and combine this with the Tokens.MergeWith function.
Thrown when the encounters an error.
public static GetOAuthTokens ( this request ) : SimpleOAuth.Tokens
request this The request that needs to be signed with OAuth.
리턴 SimpleOAuth.Tokens

GetOAuthTokensAsync() 공개 정적인 메소드

For the Request and Access Token stages, makes the request and parses out the OAuth tokens from the server.
You typically call this when making a request to get the users access tokens and combine this with the Tokens.MergeWith function.
Thrown when the encounters an error.
public static GetOAuthTokensAsync ( this request, Exception>.Action callback ) : void
request this The request that needs to be signed with OAuth.
callback Exception>.Action
리턴 void

SignRequest() 공개 정적인 메소드

Begin signing this WebRequest object with OAuth.
public static SignRequest ( this request ) : OAuthRequestWrapper
request this The request that needs to be signed with OAuth.
리턴 OAuthRequestWrapper

SignRequest() 공개 정적인 메소드

Begin signing this WebRequest object with OAuth using the tokens provided.
public static SignRequest ( this request, SimpleOAuth.Tokens withTokens ) : OAuthRequestWrapper
request this The request that needs to be signed with OAuth.
withTokens SimpleOAuth.Tokens The to use to sign the request with.
리턴 OAuthRequestWrapper