Skip to content

Instantly share code, notes, and snippets.

@marciok
Last active May 14, 2020 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marciok/8dcfd4ce2044817b4603012d03624e4b to your computer and use it in GitHub Desktop.
Save marciok/8dcfd4ce2044817b4603012d03624e4b to your computer and use it in GitHub Desktop.
  1. Adicione no request para obter o access token a seguinte informação no body como JSON:

{
    "username" : "site@webmotors.com.br",
    "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\" : \"site@webmotors.com.br\",\n    \"password\" : \"teste123\",\n    \"integracaosite\" : true,\n    \"grant_type\" : \"password\"\n}",
  "timeout": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment