We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
gsanvel
4 years agoNew member | Level 2
Raspberry Pi File Transfer: Access Token Keeps Expiring
Hi all,
I'm new to this space and I'm having trouble making it so that my access token doesn't expire. I simply want to upload some videos that the Raspberry Pi cam record onto my Dropbox. Below is a picture of my code. Can someone help me make it such that the access token doesn't expire? I read something about refresh tokens and what not but I don't know how to do it. Any helpful code snippet would be really helpful!!
Thanks in advance c:
P.S Even better, is there a way to just download Dropbox onto the raspberry-Pi such that I just have the linked folder there on the desktop? I have this version of the rasp-pi: https://www.amazon.com/gp/product/B08B6F8QRV/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
2 Replies
- Здравко4 years agoLegendary | Level 20
Hi gsanvel,
Probably the "Access Key (hidding for privacy)" denotes the place for you access token. Take in mind that the access tokens, used in all API calls, validity is limited to 4 hours only! Maybe you have thought to use long lived access token. If so, you have to be aware that such tokens type is obsolete and their generation is dropped already, despite generated can still be used; i.e. you can't create new such token. Replacement of long lived access token is usage of refresh token. Take a look here how you can create a Dropbox client object in such a way. 😉 Once created you can use it in the way you want to.
Unfortunately Dropbox doesn't provide support for ARM hardware (the only exception is Apple's M1). 🤷
Hope this clarifies matter.
- tahsini4 years ago
Dropbox Staff
As Здравко mentioned we have examples of OAuth within our python sdk that you can use for reference when implementing refresh tokens.
The SDK handles automatic refreshing of expired short-lived tokens so you do not need to do this on your own. You can see those examples of OAuth here.
About Discuss Dropbox Developer & API
Make connections with other developers
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!