Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Omri1984's avatar
Omri1984
Explorer | Level 4
3 years ago

Access Toke - after using the refresh token method how can i get the new access token

i am using the offline long token

 

i have an access token  XXX

and refresh token  YYY

 

I used the token until it expired

then I used the refresh token method with null to refresh all my scopes.

 

how can i extract the new access token from the client  in order to save it?

 

 

2 Replies

Replies have been turned off for this discussion
  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    Hi Omri1984,

    The Dropbox .NET SDK (the one most probably you are interested in) is NOT implemented in a way such thing be possible, unfortunately. Probably coder mistake. You need to "hack" DropboxRequestHandler, to be possible something like (or in the DropboxRequestHandlerOptions part, at least).

    If you are interested, in other SDKs it's possible the same without hacks, in spite improvements are possible there too (Java SDK for instance).

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    That's correct, the official Dropbox .NET SDK does not offer a way to retrieve the latest short-lived access token that it has, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.

     

    That's not needed for the operation of the .NET SDK though. You don't actually need to supply a short-lived access token. The .NET SDK will automatically retrieve new short-lived access tokens for you, and it doesn't require an existing short-lived access token to do so.

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!