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

Creates and signs an authenticated request to the Tumblr API.
Afficher le fichier Open project: Karn/Tumblr.Universal

Méthodes publiques

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

Méthode Description
RequestBuilder ( ) : System

Primary constructor.

Method Details

Encode() public méthode

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

GenerateSignature() public méthode

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

GetNonce() public méthode

Generates an unique token to use with an request.
public GetNonce ( ) : string
Résultat string

GetTimeStamp() public méthode

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