Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I recived the body of notification as example listed below.
{ list_folder: { accounts: ['dbid:AABRfEVfzNwPNP0tffaaZFQy...'] }, delta: { users: [1037..] } }
However, I did not know how to access user changed file by /files/list_folder/continue or /files/list_folder.
To keep track of changes in the accounts of the users linked to your app, you should start by calling /2/files/list_folder and /2/files/list_folder/continue as necessary, following the instructions in the documentation to get the full state of the account. With each call, you should store the latest returned "cursor". The cursors are user-specific, so you should stored them identified by the user's account ID.
Then, each "dbid:..." string you receive in the webhook notification body is the account ID of a user with changes in their account.
You should then call /2/files/list_folder/continue again with the latest cursor you have stored for that particular user, which will give you the new changes since the last call to /2/files/list_folder/continue.
Hello Greg:
Thanks for your response. I studies the api document later. However, there was somthing still confused me.
The api /2/files/list_folder needed path parameter and/2/files/list_folder/continue needed cursor parameter.
However, I did not know how to get them from the body of webhook notification which merely contained account ID.
Hi there!
If you need more help you can view your support options (expected response time for a 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!