Forum Discussion
Having problems to find the Power BI AccessToken
- 8 years ago
You are getting your tokens confused. All the API's require a Power BI Access Token. The GenerateToken API referenced above is a token used only to open a Report. Here is information on how to generate a Power BI Access Token:
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-embedding-content/
Also you might want to use the new version of the API Version 2.
https://github.com/Microsoft/PowerBI-CSharp
You are getting your tokens confused. All the API's require a Power BI Access Token. The GenerateToken API referenced above is a token used only to open a Report. Here is information on how to generate a Power BI Access Token:
https://powerbi.microsoft.com/en-us/documentation/powerbi-developer-embedding-content/
Also you might want to use the new version of the API Version 2.
https://github.com/Microsoft/PowerBI-CSharp