Discuss Dropbox Developer & API
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
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.
Hi there!
If you need more help you can view your support options (expected response time for a 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!