Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi!
I am developing a web app with php and javascript which uses dropbox for getting files. The problem is, everytime I load the file and then I change it on Dropbox, the file in my app stays unchanged.
Is there a chance that Dropbox will notify my app so I will know when to reload the file?
Thank you for your responses
You can use /2/files/list_folder and /2/files/list_folder/continue to get the file listing and check for further changes over time.
If the integration is built client-side, you can also use /2/files/list_folder/longpoll for low-latency detection of changes while your app is open.
(If you're using an SDK or library, there will be corresponding methods for those endpoints.)
For server-side integrations, you can use webhooks to be notified of changes.
Hi Greg,
I have decided for webhooks and I want to build the solution on the server-side. The problem is, Dropbox is integrated in both client-side and server-side (as long as I understand correctly). The client side is a button which is a Dropbox Chooser. The server-side is a tree view of the Dropbox files which uses server-side function from the DB API get_metadata(). This metadata is then sent to a JavaScript function which recursively shows all of the files and enables option to download them from that view.
My question is, can I implement the same solution for both of these components, and can I use the webhook also for the Dropbox Chooser? This solution is not implemented by me, but by developers before me, and for example when I log out of the component for Dropbox Chooser, the tree view account still stays because it is connected via a dropbox confirmation code in some other place in the web app. Is there a way to make this more consistent and implement webhook effectively?
Thank you for your response, I appreciate it very much
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!