We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Richard_D
7 years agoNew member | Level 2
Watch received files in a dropbox account
Hello,
I would like to watch for changes to all files in a Dropbox account. I have implemented the following:
1) Call /list_folder/get_latest_cursor to get a cursor to a users files. I store this locally.
2) I then call list_folder/continue and get any delta from previous hanges and store the new cursor locally. This then repeats periodically.
This appears to be working for files that a user adds to their account. However it doesn't return when a file is shared or unshared by another user.
I then tried list_received_files and list_received_files_continue. This however does not appear to work the same way as list_folder, as it doesn't return a cusor when no more results are present, so I can't keep polling for a delta. I have to retrieve all received files everytime. Is this correct or am I doing something wrong?
My usecase is that I want to watch for changes to any files, shared folders, or recieved files for a Dropbox user. What is the easiest way to do this?
Thanks for the help.
- Greg-DBDropbox Staff
There isn't a way to get notified of sharing actions like this unfortunately, but I'll pass this along as a feature request.
As you found, /list_folder/continue is only for actual file/folder changes, which doesn't include sharing activity, and the list_received_files interface doesn't work the same way as list_folder.
- Richard_DNew member | Level 2
Thanks for the clarification. Are webhooks any help for this scenerio? Will i get notified via a webhook when a file is shared to a user?
- Greg-DBDropbox Staff
No, webhooks would only notify of filesystem changes, i.e., like /list_folder/continue would report, not sharing changes.
(There is technically some additional functionality for Business apps/teams, but it sounds like you're not referring to a Business app/team, so that wouldn't apply. Let me know if not though.)
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!