Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |