Свойство | Тип | Описание | |
---|---|---|---|
OAuth2AccessCode | string | ||
OAuth2AccessToken | string | ||
OAuth2AccessType | string | ||
OAuth2ApprovalPrompt | string | ||
OAuth2ClientId | string | ||
OAuth2ClientSecret | string | ||
OAuth2ExpiresIn | string | ||
OAuth2GrantType | string | ||
OAuth2RedirectUri | string | ||
OAuth2RefreshToken | string | ||
OAuth2ResponseType | string | ||
OAuth2State | string | ||
OAuth2TokenType | string | ||
OAuthCallbackKey | string | ||
OAuthConsumerKeyKey | string | ||
OAuthConsumerSecretKey | string | ||
OAuthNonceKey | string | ||
OAuthParameterPrefix | string | ||
OAuthScopeKey | string | ||
OAuthSignatureKey | string | ||
OAuthSignatureMethodKey | string | ||
OAuthTimestampKey | string | ||
OAuthTokenKey | string | ||
OAuthTokenSecretKey | string | ||
OAuthVerifierKey | string | ||
OAuthVersion | string | ||
OAuthVersionKey | string |
Свойство | Тип | Описание | |
---|---|---|---|
unreservedChars | string |
Метод | Описание | |
---|---|---|
EncodingPerRFC3986 ( string value ) : string |
All parameter names and values are escaped using the [RFC3986] percent-encoding (%xx) mechanism. Characters not in the unreserved character MUST be encoded. Characters in the unreserved character set MUST NOT be encoded. Hexadecimal characters in encodings MUST be upper case. Text names and values MUST be encoded as UTF-8 octets before percent-encoding them per [RFC3629]
|
|
GenerateNonce ( ) : string |
Generate a nonce
|
|
GenerateOAuthSignature ( string consumerSecret, string tokenSecret ) : string |
oauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a ‘&’ character (ASCII code 38), even if either secret is empty. The result MUST be encoded again.
|
|
GenerateOAuthSignatureEncoded ( string consumerSecret, string tokenSecret ) : string |
oauth_signature is set to the concatenated encoded values of the Consumer Secret and Token Secret, separated by a ‘&’ character (ASCII code 38), even if either secret is empty. This version calls GenerateOAuthSignature and encodes the whole signature again The result MUST be encoded again.
|
|
GenerateSignature ( |
Generates a signature using the specified signatureMethod
|
|
GenerateSignature ( |
Generates a signature using the HMAC-SHA1 algorithm
|
|
GenerateSignature ( |
Generates a signature using the specified signatureMethod
|
|
GenerateSignatureBase ( |
Generate the signature base that is used to produce the signature
|
|
GenerateSignatureBase ( |
Generate the signature base that is used to produce the signature
|
|
GenerateSignatureUsingHash ( string signatureBase, |
Generate the signature value based on the given signature base and hash algorithm
|
|
GenerateTimeStamp ( ) : string |
Generate the timestamp for the signature
|
|
GetExchangeAccessCodeRequestBody ( Google.GData.Client.OAuth2Parameters parameters ) : String |
Generate the request body for exchanging an access code for an access token.
|
|
GetOAuth2AccessToken ( Google.GData.Client.OAuth2Parameters parameters, String requestBody ) : void |
Send the request body to the OAuth 2.0 token endpoint to retrieve an access token. When successful, updates the OAuthParameter instance passed as parameter by setting AccessToken, RefreshToken and TokenExpiry.
|
|
GetQueryParameters ( string querystring ) : string>.SortedDictionary |
Overloaded version of GetQueryParameters to work without a IDictionary parameter
|
|
GetQueryParameters ( string querystring, string>.IDictionary |
Internal function to parse query string parameters and merge them with an existing dictionary
|
|
GetRefreshAccessTokenRequestBody ( Google.GData.Client.OAuth2Parameters parameters ) : String |
Generate the request body for refreshing an access token.
|
Метод | Описание | |
---|---|---|
NormalizeRequestParameters ( string>.SortedDictionary |
Normalizes the request parameters according to the spec for the signature generation.
|
Метод | Описание | |
---|---|---|
ComputeHash ( |
Helper function to compute a hash value
|
public static EncodingPerRFC3986 ( string value ) : string | ||
value | string | The value to Url encode |
Результат | string |
public static GenerateNonce ( ) : string | ||
Результат | string |
public static GenerateOAuthSignature ( string consumerSecret, string tokenSecret ) : string | ||
consumerSecret | string | |
tokenSecret | string | |
Результат | string |
public static GenerateOAuthSignatureEncoded ( string consumerSecret, string tokenSecret ) : string | ||
consumerSecret | string | |
tokenSecret | string | |
Результат | string |
public static GenerateSignature ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
parameters | Google.GData.Client.OAuthParameters | The OAuth parameters |
Результат | string |
public static GenerateSignature ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
consumerKey | string | The consumer key |
consumerSecret | string | The consumer seceret |
token | string | The token, if available. If not available pass null or an empty string |
tokenSecret | string | The token secret, if available. If not available pass null or an empty string |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
timeStamp | string | The OAuth timestamp. Must be a valid timestamp and equal or greater than /// timestamps used in previous requests |
nonce | string | The OAuth nonce. A random string uniquely generated for each request |
Результат | string |
public static GenerateSignature ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
consumerKey | string | The consumer key |
consumerSecret | string | The consumer seceret |
token | string | The token, if available. If not available pass null or an empty string |
tokenSecret | string | The token secret, if available. If not available pass null or an empty string |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
timeStamp | string | The OAuth timestamp. Must be a valid timestamp and equal or greater than /// timestamps used in previous requests |
nonce | string | The OAuth nonce. A random string uniquely generated for each request |
signatureMethod | string | The type of signature to use |
Результат | string |
public static GenerateSignatureBase ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
parameters | Google.GData.Client.OAuthParameters | The OAuth parameters |
Результат | string |
public static GenerateSignatureBase ( |
||
url | The full url that needs to be signed including its non OAuth url parameters | |
consumerKey | string | The consumer key |
token | string | The token, if available. If not available pass null or an empty string |
tokenSecret | string | The token secret, if available. If not available pass null or an empty string |
httpMethod | string | The http method used. Must be a valid HTTP method verb (POST,GET,PUT, etc) |
timeStamp | string | The OAuth timestamp. Must be a valid timestamp and equal or greater than /// timestamps used in previous requests |
nonce | string | The OAuth nonce. A random string uniquely generated for each request |
signatureType | string | The signature type. |
Результат | string |
public static GenerateSignatureUsingHash ( string signatureBase, |
||
signatureBase | string | The signature based as produced by the GenerateSignatureBase method or by any other means |
hash | The hash algorithm used to perform the hashing. If the hashing algorithm requires initialization or a key it should be set prior to calling this method | |
Результат | string |
public static GenerateTimeStamp ( ) : string | ||
Результат | string |
public static GetExchangeAccessCodeRequestBody ( Google.GData.Client.OAuth2Parameters parameters ) : String | ||
parameters | Google.GData.Client.OAuth2Parameters | The OAuth 2.0 parameters |
Результат | String |
public static GetOAuth2AccessToken ( Google.GData.Client.OAuth2Parameters parameters, String requestBody ) : void | ||
parameters | Google.GData.Client.OAuth2Parameters | The OAuth 2.0 parameters |
requestBody | String | The request body to send |
Результат | void |
public static GetQueryParameters ( string querystring ) : string>.SortedDictionary |
||
querystring | string | The query string part of the Url |
Результат | string>.SortedDictionary |
public static GetQueryParameters ( string querystring, string>.IDictionary |
||
querystring | string | The query string part of the Url |
dict | string>.IDictionary | The dictionary to be merged with the query string parameters |
Результат | string>.SortedDictionary |
public static GetRefreshAccessTokenRequestBody ( Google.GData.Client.OAuth2Parameters parameters ) : String | ||
parameters | Google.GData.Client.OAuth2Parameters | The OAuth 2.0 parameters |
Результат | String |
protected static NormalizeRequestParameters ( string>.SortedDictionary |
||
parameters | string>.SortedDictionary | The sorted dictionary containing parameters |
Результат | string |
public static string OAuth2AccessCode | ||
Результат | string |
public static string OAuth2AccessToken | ||
Результат | string |
public static string OAuth2AccessType | ||
Результат | string |
public static string OAuth2ApprovalPrompt | ||
Результат | string |
public static string OAuth2ClientSecret | ||
Результат | string |
public static string OAuth2ExpiresIn | ||
Результат | string |
public static string OAuth2GrantType | ||
Результат | string |
public static string OAuth2RedirectUri | ||
Результат | string |
public static string OAuth2RefreshToken | ||
Результат | string |
public static string OAuth2ResponseType | ||
Результат | string |
public static string OAuth2TokenType | ||
Результат | string |
public static string OAuthCallbackKey | ||
Результат | string |
public static string OAuthConsumerKeyKey | ||
Результат | string |
public static string OAuthConsumerSecretKey | ||
Результат | string |
public static string OAuthParameterPrefix | ||
Результат | string |
public static string OAuthSignatureKey | ||
Результат | string |
public static string OAuthSignatureMethodKey | ||
Результат | string |
public static string OAuthTimestampKey | ||
Результат | string |
public static string OAuthTokenSecretKey | ||
Результат | string |
public static string OAuthVerifierKey | ||
Результат | string |
public static string OAuthVersionKey | ||
Результат | string |