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) : BCC9F5C7095E81289CFCFA969941967C89A1BED9 (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: BCC9F5C7095E81289CFCFA969941967C89A1BED9


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