Forum Discussion

lilian7300's avatar
lilian7300
Frequent Visitor
5 years ago

How to get the correct authorization token

Hi 

 

I am trying to design a simple web app which can use power BI REST API to refresh a dataset.

But I stuck on how to get the authorization token from Azure Directory.

I tried to use POSTMAN and get a token but it return "401 unauthorize error" when I try to refresh the dataset.

But if I use the token I get from microsoft  try it link (Datasets - Refresh Dataset - REST API (Power BI Power BI REST APIs) | Microsoft Docs ), it works.

 

 

Is there anybody here can help on how to get the correct authorization token?

 

Thanks

 

 

3 Replies