- Adicione no request para obter o access token a seguinte informação no body como JSON:
{
"username" : "[email protected]",
"password" : "teste123",
"integracaosite" : true,
"grant_type" : "password"
}
EXEMPLO:
{
"method": "POST",
"transformRequest": [
null
],
"transformResponse": [
null
],
"url": "https://hlg-webmotors.sensedia.com/oauth/v1/access-token",
"headers": {
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/json",
"Authorization": "Basic MjgxNTkwNzYtM2E4ZS0zNTFkLThjZjEtOGI4NTA0OTNhZDFlOmM4MWExYTc1LTNhMzgtMzIzOS04MDk5LWYxNzJiNzc4MDRkMQ=="
},
"data": "{\n \"username\" : \"[email protected]\",\n \"password\" : \"teste123\",\n \"integracaosite\" : true,\n \"grant_type\" : \"password\"\n}",
"timeout": {}
}