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 the Business API, so whenever somebody makes a change I get a list of all user id's relevant to that folder.
From that ID I call files_list_folder_continue and pass in a cursor from the last time that specific user was notified of something.
This gives me deletedMetadata, fileMetadata, and FolderMetadata, but only within the FileMetadata am I able to see information about who made the action
From deletedMetadata, and FolderMetadata it doesn't give me information like the timestamp, or the id of the person who made the folder, or deleted the item.
My question is what other ways do I have of finding information like the name of the person who deleted a folder, or created a new shared folder etc. ?
Also, when somebody creates a new shared folder and invites several people into it, my webhook only gets the userid of the person who created the shared folder, so how am I supposed to notify the people who got shared into the folder?