Lean
$LEAN_TAG$
|
Helper methods for api authentication and interaction More...
Static Public Member Functions | |
static string | Hash (int timestamp) |
Generate a secure hash for the authorization headers. More... | |
static string | Hash (int timestamp, string token) |
Generate a secure hash for the authorization headers. More... | |
static string | Link (string endpoint, IEnumerable< KeyValuePair< string, object >> payload=null) |
Create an authenticated link for the target endpoint using the optional given payload More... | |
static void | PopulateQueryString (NameValueCollection queryString, IEnumerable< KeyValuePair< string, object >> payload=null) |
Helper method to populate a query string with the given payload More... | |
Helper methods for api authentication and interaction
Definition at line 30 of file Authentication.cs.
|
static |
Generate a secure hash for the authorization headers.
Definition at line 36 of file Authentication.cs.
|
static |
Generate a secure hash for the authorization headers.
Definition at line 45 of file Authentication.cs.
|
static |
Create an authenticated link for the target endpoint using the optional given payload
endpoint | The endpoint |
payload | The payload |
Definition at line 59 of file Authentication.cs.
|
static |
Helper method to populate a query string with the given payload
Useful for testing purposes
Definition at line 76 of file Authentication.cs.