GetTokenUserNamePassword – To be Deprecated, use GetToken instead
Used to retrieve an encryptedToken based on user credentials as opposed to an encrypted API key.
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)
Parameters
Name | Type | Description |
---|---|---|
username | string | Required. User’s username, their email address. |
encryptedPassword | string | Required. The encrypted password for the user. |
salt | string | Required. Any combination of text and numbers that was used to encrypt the plain text password into encryptedPassword. |
Example – C#
[gdlr_notification icon=”none” type=”color-border” border=”#31BEF9″ color=”#000000″]ServiceAPIClient ws = new ServiceAPIClient();
string salt = “Z1s6aXNQpjQ75wRX1ulI551sR1uHyg3YsOcPLeL9TaM”;
RequestResponse requestResponse;
string encryptedPassword = string.Empty;
string encryptedToken = string.Empty;
requestResponse = ws.EncryptString(“password”, salt);
encryptedPassword = requestResponse.ReturnValue;
requestResponse = ws. GetTokenUserNamePassword (“username“, encryptedPassword, salt);
encryptedToken = requestResponse.ReturnValue;
string autologinUrl = landingURL+”token={0}&user={1}”;
string uri = string.Format(autologinUrl, encryptedToken, user);
System.Diagnostics.Process.Start(autologinUrl);
[/gdlr_notification]