Hi Team,
We have configured Webhook in a dropbox app to listen to any changes on a folder which has two sub folders with variation of files in it. Whenever any file is uploaded to these folders, our service is getting two webhook calls per action. This is causing duplication in our application.
We have kept the cursor file on our server generated from
https://api.dropboxapi.com/2/files/list_folder
with path = parent (root) folder and recursive=true so that we get notifications for any uploads in subfolders. Whenever, any webhook call arrives, we make a call to
https://api.dropboxapi.com/2/files/list_folder/continue
with cursor on the server to get the lates files uploaded and save the details in our database. Now if two webhook calls are coming at the same time for same action, then list_folder/comtinue is triggered twice with same cursor and hence created issue in our system.
Any help in correcting, configurationing cursors or our approach would be of great support. Kindly help!!
Thanks
Neha