Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi Guys!
I'm completely new to PowerBI and API's... I want to retrieve data via Request URL's.
First I need to login to get a token:
https://dashboard.emb2020.nl/api/Security/Logon?username=USERNAME&password=PASSWORD
Then you'll get this response body:
{ "token": "EDSF4wffrhwszurfhawsuhrf==",
"userID": "FIRST and LASTNAME",
"emb": true,
"language": "nl-nl",
"i10n": true, "resultCode": 4,
"resultText": "RECONNECT",
"resultDescription": "Reconnect gelukt" }Now I want to use this token in the next request:
https://dashboard.emb2020.nl/api/Company/GetCompanies?api_key=TOKEN
The token changes everytime you login, so you can't hardcode it.
What's the easiest way to do this?
You have one hour before it expires.
You coulde refer to :
https://community.powerbi.com/t5/Power-Query/Refresh-token-api-call/m-p/937553
https://www.bmc.com/blogs/microsoft-apis-authentication-tokens/
I also had the same issue
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |