Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Using refresh token for an API in power bi desktop

Hello

 

I am trying to call data from an API. My access token is only available for an hour and my current call limits are restricting me to a certain amount of call per second. I am running a Function to call data and the amount of data takes more than an hour to pull. How can I set up the refresh token within power bi desktop? I can get the data ok, but I don't want to be adding new access token when it expires. 

 

When requesting a token from the API

{
    "access_token""my-token",
    "token_type""bearer",
    "expires_in"3600,
    "refresh_token""my_refresh_token",
    "scope""my_scope"
}

Thanks

Joe

1 Reply