Forum Discussion

Nicolas_P's avatar
Nicolas_P
New Member
5 years ago
Solved

Get data with bearer token

Hello community!


I kindly ask you to help me with other question:

I have an api with standart uathorization via POST (login/pass), after i get an answer with bearer token. (using Postman)

With this token i'll do a second request via GET method and some parametrs, and in final i get an answer with data. 
Sorry, maybe not technical description))) 


So, how can i get the data to Power Bi report? 
Also, i need to update this report once a week, in API data will be updated automatically.

I will be grateful for you answers or some links to resolve this problem.

  • Hi, Nicolas_P 

     

    You can use [Get Dataset] to get data from Power BI Service, and if you're worried that you won't be able to get the latest dataset due to the schedule refresh plan, you actually can do this via REST API [Refresh Dataset], and then use [Get Dataset] immediately.

     

    Mark this post as solution if this helps, thanks!

3 Replies

  • DavisBI's avatar
    DavisBI
    Solution Specialist

    Hi, Nicolas_P 

     

    You can use [Get Dataset] to get data from Power BI Service, and if you're worried that you won't be able to get the latest dataset due to the schedule refresh plan, you actually can do this via REST API [Refresh Dataset], and then use [Get Dataset] immediately.

     

    Mark this post as solution if this helps, thanks!

    • Nicolas_P's avatar
      Nicolas_P
      New Member

      Hello DavisBI !

      Currently can't understand how the Get dataset can help me with correct request, maybe you can provide some code example?

       

      Regards, Nicolas.