C# Class Tumblr.Universal.Services.Request.RequestBuilder

Creates and signs an authenticated request to the Tumblr API.
Mostrar archivo Open project: Karn/Tumblr.Universal

Public Methods

Method Description
Encode ( string str ) : string

Encode a given string for use awith javascript queries and post bodies.

GenerateSignature ( string signatureBaseString, string tokenSecret = "" ) : string

Generates a HMAC_SHA1 signature to authenticate API requests with the ConsumerSecretKey and if possible the session token associated with the account.

GetNonce ( ) : string

Generates an unique token to use with an request.

GetTimeStamp ( ) : string

Returns the current time as a timestamp for use with a request.

Private Methods

Method Description
RequestBuilder ( ) : System

Primary constructor.

Method Details

Encode() public method

Encode a given string for use awith javascript queries and post bodies.
public Encode ( string str ) : string
str string
return string

GenerateSignature() public method

Generates a HMAC_SHA1 signature to authenticate API requests with the ConsumerSecretKey and if possible the session token associated with the account.
public GenerateSignature ( string signatureBaseString, string tokenSecret = "" ) : string
signatureBaseString string The string that is being used to generate the signature.
tokenSecret string The session token associated with the account.
return string

GetNonce() public method

Generates an unique token to use with an request.
public GetNonce ( ) : string
return string

GetTimeStamp() public method

Returns the current time as a timestamp for use with a request.
public GetTimeStamp ( ) : string
return string