Свойство | Type | Description | |
---|---|---|---|
OAuthRequestWrapper | System | ||
createAuthorization | void | ||
createSignature | void |
Méthode | Description | |
---|---|---|
InHeader ( ) : void |
Complete the request signing and add the OAuth information to the Authorization header. This must be your last step in the function chain. |
|
WithCallback ( string callbackUrl ) : |
Set the callback address that the OAuth Request Token stage should use. The oauth_callback is sometimes required at the Request Token stage in a three-legged OAuth login request. It is possible to set this for other request, but may be unexpected and cause issues. |
|
WithEncryption ( EncryptionMethod enc ) : |
Set the encryption method that should be used for this request. This is equivalent to setting OAuthRequestWrapper.SigningMethod. If it is not set, the default is to use EncryptionMethod.HMACSHA1. |
|
WithPostParameters ( string parameters ) : |
Provide the POST request to generate a valid OAuth signature. The OAuth standard requires POST parameters sent in application/x-www-form-urlencoded requests to be included in the OAuth base string to create a valid signature. If it is not provided, then the request will fail. If this is set, then the WebRequest.ContentType of the OAuthRequestWrapper.ContainedRequest will be set to 'application/x-www-form-urlencoded' if it is not already set. |
|
WithTokens ( SimpleOAuth.Tokens oauthTokens ) : |
Set the tokens that should be used for this request. This is equivalent to setting OAuthRequestWrapper.RequestTokens. |
|
WithVerifier ( string verifier ) : |
Set the oauth_verifier in the OAuth Access Token stage.
|
|
WithVersion ( string version ) : |
Set the version of OAuth being used. This is equivalent to setting OAuthRequestWrapper.OAuthVersion. If this is not set, then "1.0" is used. |
Méthode | Description | |
---|---|---|
OAuthRequestWrapper ( |
There is only one constructor, and the OAuthRequestWrapper can only be instantiated internally to the library.
|
|
createAuthorization ( ) : void | ||
createSignature ( ) : void |
public WithCallback ( string callbackUrl ) : |
||
callbackUrl | string | An address or some other string to pass as the OAuth callback. |
Résultat |
public WithEncryption ( EncryptionMethod enc ) : |
||
enc | EncryptionMethod | A |
Résultat |
public WithPostParameters ( string parameters ) : |
||
parameters | string | The POST parameters that will be sent. |
Résultat |
public WithTokens ( SimpleOAuth.Tokens oauthTokens ) : |
||
oauthTokens | SimpleOAuth.Tokens | A |
Résultat |
public WithVerifier ( string verifier ) : |
||
verifier | string | The oauth_verifier string used to verify the request. |
Résultat |
public WithVersion ( string version ) : |
||
version | string | The version number to use. |
Résultat |