-
Notifications
You must be signed in to change notification settings - Fork 88
Obtaining Client Access Token
przemyslawlis edited this page Jul 20, 2016
·
1 revision
To obtain access token you first need to have authorized client. If you don’t have it yet, please go back to Creating Authorized Client guide .
You can get access token by doing following GET request:
[your Concerto Platform URL]/oauth/v2/token?client_id=[your client public id]&client_secret=[your client secret]&grant_type=client_credentials
If request was successful, response code will be 200 you should receive JSON object in response. Example response body below:
{"access_token":"YTRjM2E3MTcxMmRhMmI0NzBhZDgxMTAyOGU5OTZmMjZhM2E2ODEzN2NlNjFlYzFiMWE2ZGYzNzVjM2YzZjI1Nw","expires_in":3600,"token_type":"bearer","scope":null}
The most important part of the response is your access token which you will need to make API requests. Please also notice that by default each access token is valid only for one hour.