You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
sisrael1
2 years agoNew member | Level 2
Downloading and uploading files from dropbox .net sdk using my own account
Hi im new to developing with dropbox and im having a hard finding the following info. im using dropbox .net sdk to upload and download images from my own account i set up a little test using the gene...
- 2 years ago
sisrael1 wrote:..., so how can i implement a refresh token process without any interaction?
...
Hi sisrael1,
Without any interaction - impossible. Unfortunately, Dropbox doesn't provide a way to receive refresh token as it was for long lived access token (not yet at least). You need to perform one interaction, at least, either within the application or by hands - some initial (interactive) steps. You may take a look here of how you can get refresh token (there entire process is shown; you don't need the last steps, since they are implemented in SDK) and after that just initialize your Dropbox client object with that tokens and keys (not just access token only like you are doing right now).
Hope this helps.
Здравко
Legendary | Level 20
sisrael1 wrote:..., so how can i implement a refresh token process without any interaction?
...
Hi sisrael1,
Without any interaction - impossible. Unfortunately, Dropbox doesn't provide a way to receive refresh token as it was for long lived access token (not yet at least). You need to perform one interaction, at least, either within the application or by hands - some initial (interactive) steps. You may take a look here of how you can get refresh token (there entire process is shown; you don't need the last steps, since they are implemented in SDK) and after that just initialize your Dropbox client object with that tokens and keys (not just access token only like you are doing right now).
Hope this helps.
sisrael1
2 years agoNew member | Level 2
Thank you for you're response i have read that post before asking my question, the difficulty im having is the following, im only using my own user account in dropbox to store images and its being done by my backend (c# web api) so this auth flow as described in that post needs to happen when and where exactly? i hope you understand my difficulty here from this poorly written reply
- Здравко2 years agoLegendary | Level 20
Hi again sisrael1,
Yes, I understood what you mean. 🙂
sisrael1 wrote:... so this auth flow as described in that post needs to happen when and where exactly? ...
At any moment before you're going to use your system (let's say right now would be fine). That flow needs to be performed a single time only and, as mentioned there, refresh token doesn't expire. So,... your system will be ready for use for... ever. 😉 (or till revoke)
Hope this clarifies matter.
PS: I forgot to mention that you can execute the commands wherever convenient for you (let's say on the machine you are posting now would be fine).
- sisrael12 years agoNew member | Level 2
thank you i didnt get that part that its a one time action needed not every time i want to use dropbox
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days 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!