This example will not work in productions, the goal is to guide through the construction of the access token string.
email : mymail@client.com
API key : a1b2c3d4e5f6g7h8 (it is linked to your mail and it can be found on the Accengage Dashboard in your profile)
Timestamp : 1507722391
Accengage-Signature (to be encoded in Sha1) : {"email":"mymail@client.com"}a1b2c3d4e5f6g7h81507722391
Accengage-Signature (encoded) : f974f730586ce2bf49a276845060a8d38bb43770 (If needed, use : http://www.sha1-online.com/ to convert).
URL : POST https://api.accengage.com/v1/access_token
Headers :
Accengage-Time : 1507722391
Accengage-Signature: f974f730586ce2bf49a276845060a8d38bb43770
Body : {"email":"mymail@client.com"}
Response :
{
"token_type": "Bearer",
"access_token": "12345678"
}
Make sure that your body looks exactly the same than in your Accengage-Signature (use concatened body).
URL : GET https://api.accengage.com/v1/me
Accengage-Signature (Api Key+Timestamp to be encoded in Sha1 because there is no body for this API) : a1b2c3d4e5f6g7h81507722391
Accengage-Signature (encoded) : BA04FC7206950CE63D78DDBC9E65C48FB96E54D7
Headers :
Accengage-Time : 1507722391
Accengage-Signature: BA04FC7206950CE63D78DDBC9E65C48FB96E54D7
Authorization : Bearer 12345678
After sending this call, you should get a "Welcome" message from our API response.