Authentication
Realiza a criação de um token de acesso aos serviços
POST
https://{account}.myhubdelivery.io/license-manager/api/v1/oauth/token
Content-Type: application/x-www-form-urlencoded
Request Body
Name
Type
Description
client_id*
String
<<AccountClientID>>
client_secret*
String
<<AccountClientSecret>>
grant_type*
String
client_credentials
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBY2NvdW50SWQiOiIyYllsNndnTTlaIiwiQWNjb3VudFNsdWciOiJodWJkZWxpdmVyeSIsIk1lcmNoYW50cyI6IltdIiwicm9sZSI6IkFwaVB1YmxpYyIsIkFwaVB1YmxpYyI6InRydWUiLCJTY29wZXMiOiJpby5hbGwiLCJuYmYiOjE2NTI5ODQ4MDEsImV4cCI6MTY1MzA3MTIwMSwiaWF0IjoxNjUyOTg0ODAxfQ.V717416_87wxYHlpFx587l0dNEwTjdlEmNpPzOua2nbFlN6H2RQ",
"token_type": "Bearer",
"expires_in": 86400
}
curl --location --request POST 'https://{account}.myhubdelivery.io/license-manager/api/v1/oauth/token' \CU
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id=AccountClientID>>' \
--data-urlencode 'client_secret=AccountClientSecret>>' \
--data-urlencode 'grant_type=client_credentials'
Last updated