Forum Discussion

Rookie_2022's avatar
Rookie_2022
Frequent Visitor
1 year ago
Solved

Connecting OAUTH2 Authorization API

Dear,

 

I am having difficulty in using desktop power query to connect to OAUTH2 API. I am asked to request the access token to below server:

 

curl --request POST \
--url https://api.maersk.com/customer-identity/oauth/v2/access_token \
--header 'Cache-Control: no-cache' \
--header 'Consumer-Key: {appConsumerKey}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data grant_type=client_credentials \
--data client_id={appConsumerKey} \
--data client_secret={appClientSecret}

 

Then using the "Access Token" to Request API.

 

Anyone knows how to make the connection?

 

3 Replies