C# Class Vuzit.Service

Global Vuzit service class.
Afficher le fichier Open project: vuzit/vuzit.net

Méthodes publiques

Méthode Description
EpochTime ( System.DateTime date ) : int

Returns a date/time object as the seconds since the Epoch.

Signature ( string service, System.DateTime date ) : string

Returns the signature string.

Signature ( string service, string id ) : string

Returns the signature string.

Signature ( string service, string id, System.DateTime date, OptionList options ) : string

Returns the signature string.

UrlEncode ( string text ) : string

Properly encodes a URL to pass to the Vuzit service.

Private Methods

Méthode Description
CalculateRFC2104HMAC ( string text, string key ) : string

Computes RFC 2104-compliant HMAC signature.

Method Details

EpochTime() public static méthode

Returns a date/time object as the seconds since the Epoch.
public static EpochTime ( System.DateTime date ) : int
date System.DateTime
Résultat int

Signature() public static méthode

Returns the signature string.
public static Signature ( string service, System.DateTime date ) : string
service string Name of the service: 'show', 'create', or 'destroy'.
date System.DateTime Date of the request
Résultat string

Signature() public static méthode

Returns the signature string.
public static Signature ( string service, string id ) : string
service string Name of the service: 'show', 'create', or 'destroy'.
id string ID of the document.
Résultat string

Signature() public static méthode

Returns the signature string.
public static Signature ( string service, string id, System.DateTime date, OptionList options ) : string
service string Service name (e.g. 'show').
id string ID of the document.
date System.DateTime Date of the request
options OptionList
Résultat string

UrlEncode() public static méthode

Properly encodes a URL to pass to the Vuzit service.
public static UrlEncode ( string text ) : string
text string URL text.
Résultat string