C# Класс Tumblr.Universal.Services.Request.RequestBuilder

Creates and signs an authenticated request to the Tumblr API.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
RequestBuilder ( ) : System

Primary constructor.

Описание методов

Encode() публичный Метод

Encode a given string for use awith javascript queries and post bodies.
public Encode ( string str ) : string
str string
Результат string

GenerateSignature() публичный Метод

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.
Результат string

GetNonce() публичный Метод

Generates an unique token to use with an request.
public GetNonce ( ) : string
Результат string

GetTimeStamp() публичный Метод

Returns the current time as a timestamp for use with a request.
public GetTimeStamp ( ) : string
Результат string