C# Class SimpleOAuth.Extensions

Contains all extensions required to kick this magic off.
Mostrar archivo Open project: cbenard/SimpleOAuth.Net

Public Methods

Method 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 method

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.
return SimpleOAuth.Tokens

GetOAuthTokensAsync() public static method

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
return void

SignRequest() public static method

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

SignRequest() public static method

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.
return OAuthRequestWrapper