How to generate Access-token and the Accengage Signature for our REST APIs

This example will not work in productions, the goal is to guide through the construction of the access token string.

email :

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":""}a1b2c3d4e5f6g7h81507722391

Accengage-Signature (encoded) : f974f730586ce2bf49a276845060a8d38bb43770 (If needed, use : to convert).


Headers : 

Accengage-Time : 1507722391

Accengage-Signature: f974f730586ce2bf49a276845060a8d38bb43770

Body : {"email":""}

Response : 

"token_type": "Bearer",
"access_token": "12345678"

Make sure that your body looks exactly the same than in your Accengage-Signature (use concatened body).


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

Cet article vous a-t-il été utile ?
Utilisateurs qui ont trouvé cela utile : 0 sur 0
Envoyer une demande