Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
nskobov
8 years agoExplorer | Level 4
How to Implement an exhaustive notification system with API V2
I am tasked with building an email notification system for my company which will alert our employees whenever a file is changed, moved, deleted, created, etc. I have properly set up webhooks with...
- 8 years ago
The Dropbox API doesn't directly return a few of these pieces of information unfortunately, such as file ID in DeleteMetadata, modified/deleted time in FolderMetadata/DeletedMetadata, or modified_by for FolderMetadata, but I'll pass these along as feature requests.
There are some other things you can do though. You can store the last known (File|Folder)Metadata object for a particular path and id, so that when you get a DeletedMetadata, you can check what the last known file ID was for that path.
You can check who is the owner, and that access level other members have, for any particular folder using /2/sharing/list_folder_members[/continue].
Additionally, for Business apps, you can use /2/team_log/get_events to get a log of events for all members.
Also, when members are invited to a shared folder, that doesn't automatically add the folder to their accounts, so it won't trigger a webhook. They will receive notifications of the invite directly from Dropbox itself anyway though. (You will then receive webhooks when they do accept the invite and add the folder to their accounts.)
Greg-DB
Dropbox Community Moderator
8 years agoThe Dropbox API doesn't directly return a few of these pieces of information unfortunately, such as file ID in DeleteMetadata, modified/deleted time in FolderMetadata/DeletedMetadata, or modified_by for FolderMetadata, but I'll pass these along as feature requests.
There are some other things you can do though. You can store the last known (File|Folder)Metadata object for a particular path and id, so that when you get a DeletedMetadata, you can check what the last known file ID was for that path.
You can check who is the owner, and that access level other members have, for any particular folder using /2/sharing/list_folder_members[/continue].
Additionally, for Business apps, you can use /2/team_log/get_events to get a log of events for all members.
Also, when members are invited to a shared folder, that doesn't automatically add the folder to their accounts, so it won't trigger a webhook. They will receive notifications of the invite directly from Dropbox itself anyway though. (You will then receive webhooks when they do accept the invite and add the folder to their accounts.)
nskobov
8 years agoExplorer | Level 4
Thanks Greg, I really appreciate it.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!