Generating access token
With your API client you can now generate access token.
In order to do that you need to send a POST request on
https://<your_traffit_name>.traffit.com/oauth2/token including following parameters:
It's your client name which you have created before.
It's a Client Secret generated by Traffit for a client which you have created before.
You need to type a password here
Your Traffit username which you use for logging into Traffit system.
Your Traffit password which you use for logging into Traffit system.
One of the scopes which you chose for a client.
Example cURL request:
curl -X POST \
-F client_id=<your_client_name> \
-F client_secret=<your_client_secret> \
-F grant_type=password \
-F username=<your_Traffit_username> \
-F password=<your_Traffit_password> \
The response will contain an access token which is valid for one hour.
From now on, you can start using our integration API.