Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!
Forum Discussion
RileyL
8 months agoNew member | Level 2
Durable or Offline OAth Token for RPA Use? (accessing own account only)
I am building a robotic process automation (RPA) using ZeroWork and JavaScript. I successfully programmed the RPA to upload a file to Dropbox via the API, but I cannot find a way to get a durable OA...
- 8 months ago
RileyL wrote:...
I get the reason for the short expirations and I am fine with coding in token refreshes, if I could just get the offline token I need to do it. We are only accessing our own Dropbox account and files, so we don't need other users to do any authorization of their accounts.
...Hi RileyL,
Whenever you need long term to access an account (doesn't matter only your own or for multiple user accounts), you need to perform offline OAuth flow. By now, Dropbox provide only access token (that's short lived) on the applications panel, but no way you get refresh token (the long lived one) in the same way. There are different ways to do so. One possible way to get by hand a refresh token and how you could automatic refresh your access token could be seen here. Only the last step there need to be coded and used repeatably, all other steps are one time only.
Hope this helps.
Здравко
8 months agoLegendary | Level 20
RileyL wrote:...
I get the reason for the short expirations and I am fine with coding in token refreshes, if I could just get the offline token I need to do it. We are only accessing our own Dropbox account and files, so we don't need other users to do any authorization of their accounts.
...
Hi RileyL,
Whenever you need long term to access an account (doesn't matter only your own or for multiple user accounts), you need to perform offline OAuth flow. By now, Dropbox provide only access token (that's short lived) on the applications panel, but no way you get refresh token (the long lived one) in the same way. There are different ways to do so. One possible way to get by hand a refresh token and how you could automatic refresh your access token could be seen here. Only the last step there need to be coded and used repeatably, all other steps are one time only.
Hope this helps.
RileyL
8 months agoNew member | Level 2
This is FANTASTIC! Thank you! One time hurdles are no problem if they produce a durable solution. You are a life saver!
I am off to try this method now and will report back.
About Integrations
Find solutions to issues with third-party integrations from the Dropbox Community. Share advice and help members with their integration questions.
Need more support
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 or Facebook.
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!