1- Login to https://app.q-play.io/
2- Click on your name and click API from dropdown
3- Click Create button to create new API Client ID and Secret
1- Create a POST request to: {{api_url}}/oauth/token
api_url = https://app.q-play.io/api/rest/v2/
2- In form-data add following key value pairs:
i- grant_type: client_credentials
ii- client_id: CLIENT_ID (from Step 1.3)
iii- client_secret: CLIENT_SECRET (from Step 1.3)
3- Send the request and you will get a response like following:
{
"token_type": "Bearer",
"access_token": "xxxxxxxxxxxxxxxxxxx",
"expires_in": 3600
}
4- You will get an "access_token" that will be valid for 1 hour and you will have to fetch it again after every 1 hour.