Used to get an encryptedToken to make calls to the web service function. A new encryptedToken needs to be obtained prior to any call to the web service.

URI GET rest/v1/gettoken/{salt}

Returns – A RequestResponse containing the encryptedToken string in the ReturnValue property.  The encryptedToken will be an encrypted value of your token. This will be sent with almost every call to the web service regarding user handling and session creation. (See RequestResponse in Appendix B)


Name type Description
encryptedAPIKey string Required. API Key.
salt string Required. Any combination of text and numbers
used to encrypt the API Key.

Example – C#

[gdlr_notification icon=”none” type=”color-border” border=”#31BEF9″ color=”#000000″]
string uri = “rest/v1/gettoken/{0}”;
string salt = “Z1s6aXNQpjQ75wRX1ulI551sR1uHyg3YsOcPLeL9TaM”;
string responseString = string.Empty;
JavaScriptSerializer jss = new JavaScriptSerializer();
RequestResponse requestResponse;

uri = string.Format(uri, salt);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(host + uri);
request.Headers.Add(“Authorization” , encryptedAPIKey);
request.Method = “GET”;
request.ContentType = “application/json”;

HttpWebResponse response = (HttpWebResponse)request.GetResponse();
responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
requestResponse = jss.Deserialize<RequestResponse>(responseString);