C# Класс SimpleOAuth.Extensions

Contains all extensions required to kick this magic off.
Показать файл Открыть проект

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

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