...
All API methods require a security token to use the system. This token is stored in the HTTP cookie to allow multiple API calls from one authentication request. A token is requested by authenticating with a user username and password combination.
Token URL
Method: GETPOST
Endpoint:
https://api.tforge.co.za/voiceomni/user/apitokenlogin/{login}
Authorization:
Authorization: Key=your-auth-key
Paste code macro | ||||
---|---|---|---|---|
| ||||
{
"username":"{user_name}",
"password":"{Base64Password}"
} |
The Token service API will return a token on success.
Paste code macro | ||||
---|---|---|---|---|
| ||||
{ To be added...provided } |
Password
The password needs to be sent in the authorization header of the request; the password needs to be converted to Base64 with ASCII encoding to get the bytes[] from the password string.
...
It is recommended that you keep track of the Token Key and its expiry as making a request every time can slow down the import process.Login should be plain text.
When a successful API call is made to the API Token service, it will return a JSON object. A user token key must be passed to each API endpoint along with the request.