Before any other call can be made to PublicAPI, the authentication-token header need to be retrieved. No headers are required for this http-call:
POST/GET api/logon/getauthenticationtoken?email=apiuser@nilex.se&password=******
Response JSON:
{
"Data": {
"Token": AAEAAAD**************************************************************AAAAAAs=",
"Expires": "2016-05-25T06:20:10"
},
"Errors": null,
"IsError": false
}
This response data need to be kept, and the value of “Token” needs to be put in header “Authentication-Token” in other calls. When “Expires” has expired a new authentication for a fresh token need to be made.