Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Rookie_2022
Frequent Visitor

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?

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Please follow the documentation. Use Header and Content parameters. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-2

 

Note that most likely you will need to create a custom connector if you want to refresh in the service.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Please follow the documentation. Use Header and Content parameters. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-2

 

Note that most likely you will need to create a custom connector if you want to refresh in the service.

Hi @lbendlin 

 

Is there any customs connector example for reference? I need to refresh the data everyday. 

 

Thanks.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors