Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I am trying to configure my query to pull data from an API. I have the API address, secret and key. When I send the secret and key, my answer back is a token (amongst other pieces of information). I then have to take the token from the first call and authenticate again with a user name and password to obtain the actual data I need for the dashboard report. Any suggestions on how to code this so it is automatic?
@vwiles84 , Not very clear, check if you are looking for
https://docs.microsoft.com/en-us/power-bi/developer/automation/walkthrough-push-data-get-token
Not really,
Basically my API requires me to send a security call with the API Secret and Key. In the response from that call, i get a login TOKEN. I then have to make another call with that token and pass it with my website username and password using the API call of the full sales data.
So the first call output looks like this:
Hi @vwiles84 ,
See if this helps
https://community.powerbi.com/t5/Desktop/Fetching-data-using-api-with-key-and-api-secret/m-p/702030
https://community.powerbi.com/t5/Power-Query/Refresh-token-api-call/m-p/937553
Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
Sorry, but these links did not help. 😕 I've switched to another dashboard creation so I will come back to this when i am able to try again. thanks for your help.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
87 | |
81 | |
63 | |
49 |
User | Count |
---|---|
121 | |
109 | |
81 | |
67 | |
67 |