C# Class SimpleOAuth.Extensions

Contains all extensions required to kick this magic off.
Afficher le fichier Open project: cbenard/SimpleOAuth.Net

Méthodes publiques

Méthode Description
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.

Method Details

GetOAuthTokens() public static méthode

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.
Résultat SimpleOAuth.Tokens

GetOAuthTokensAsync() public static méthode

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
Résultat void

SignRequest() public static méthode

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

SignRequest() public static méthode

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.
Résultat OAuthRequestWrapper