Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I'm using the /delta endpoint (via the PHP SDK's getDelta method) to detect when any changes have been made in a folder or any of its children, grandchildren, etc. It seems to work well. However, in the API documentation it instructs to, "...wait a while (at least 5 minutes) before calling getDelta again". I'm running my code on a linux-based server and wish to deploy it as a cron job running more frequently than every 5 minutes, so that I can be notified rather quickly about any new uploads. If /delta is intended to be called at most once every 5 minutes, is there another way to achieve the same goal easily with a lower time interval in between checks?
Yes, for server-side apps, we recommend using webhooks:
https://www.dropbox.com/developers/webhooks/docs
For client-side apps, or if webhooks won't suit your use case for whatever reason, you can use /longpoll_delta:
The below blog post might help. It uses /longpoll_delta
and /delta
in a loop. (Code is in Python.)
https://blogs.dropbox.com/developers/2013/11/low-latency-notification-of-dropbox-file-changes/
The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.
Sound good? Let's get started.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 Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!