curl --location --request POST 'https://api-dev.dhl.com/ecs/ppl/myapi2/login/getAccessToken' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'grant_type=client_credentials' \ --data-urlencode 'client_id=clientID' \ --data-urlencode 'client_secret=clientSecret' \ --data-urlencode 'scope=myapi2'
{ "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJVTEI5...", "expires_in": 1800, "refresh_expires_in": 0, "token_type": "Bearer", "not-before-policy": 0, "scope": "myapi2" }