We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Robert B.58
11 years agoNew member | Level 1
Frequency of allowed /delta calls to detect changes
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?
2 Replies
Replies have been turned off for this discussion
- Greg-DB11 years ago
Dropbox Community Moderator
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:
- Steve M.11 years ago
Dropbox Staff
The below blog post might help. It uses
/longpoll_deltaand/deltain a loop. (Code is in Python.)https://blogs.dropbox.com/developers/2013/11/low-latency-notification-of-dropbox-file-changes/
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!