We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
lsteel11
3 years agoExplorer | Level 4
Long-term Access Token for using in Node Red
Hi,
I am trying to sync data from a raspberry pi to a dropbox app, so that I can access the data remotely in real time (e.g. it updates every 10 mins). I created a flow in Node Red to do this,...
- 3 years ago
1. Yes, using a refresh token is the right way to maintain long-term access without repeated manual interaction.
2. You can find an example of using the Python SDK to process the app authorization flow to get a refresh token here. Once you have the refresh token, you can store and re-use it to make the Dropbox client object whenever you need, without processing the app authorization flow again. The SDK will use the refresh token to perform the refresh process for you automatically.
Greg-DB
3 years agoDropbox Staff
1. Yes, using a refresh token is the right way to maintain long-term access without repeated manual interaction.
2. You can find an example of using the Python SDK to process the app authorization flow to get a refresh token here. Once you have the refresh token, you can store and re-use it to make the Dropbox client object whenever you need, without processing the app authorization flow again. The SDK will use the refresh token to perform the refresh process for you automatically.
- lsteel113 years agoExplorer | Level 4
Hi Greg,
Thank you so much for this! I have managed to successfully implement the code (using my App Key etc) as far as line 19.
When I run that next section, python just shuts down... any ideas?
Many thanks,
Laura
- lsteel113 years agoExplorer | Level 4
Hi Greg,
Thank you so much for this! I have managed to successfully implement the code (using my App key etc) up until line 19.
When I run this next section, python just shuts down ... any ideas?
Many thanks!
Laura
- lsteel113 years agoExplorer | Level 4
Hi Greg,
Thank you so much for this! I have tried to reply a couple of times but dropbox keeps marking my response as spam and removing it!?
I have successfully implemented the example code (using my app key etc) up until line 19. When I try to run this next section, python just shuts down ... any ideas?
Many thanks!
- Greg-DB3 years agoDropbox Staff
Apologies for the trouble with the spam filter. I just unflagged your posts. Anyway, I saw your new post and followed up there.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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!