Response Body
{
"data": {
"type": "access_token",
"id": "",
"attributes": {
"token_type": "Bearer",
"access_token": "xxxxxxxxxxxxxxxxx"
}
}
}
Tests
var jsonData = JSON.parse(responseBody);
postman.setEnvironmentVariable("app_token", jsonData.data.attributes.access_token);
postman.setEnvironmentVariable("app_token_type", jsonData.data.attributes.token_type);