Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hello,
I don't get what is a cursor.
What does Cursor on webhook?
There is any example in java with a Cursor?
I'm making an app that just need to know the files that the users has in the application folder. I need webhook because i need to notify my application if there's a new file or deleted file, but I don't get what is a cursor and how does it work.
A cursor is a string that keeps track of where you are in the history of the changes in the account. To list the contents of the folder, you call /2/files/list_folder. You should store the latest cursor you get from the response, and continue calling back to /2/files/list_folder/continue if/when necessary. The documentation has more information on how to use that.
Dropbox webhooks just tell you when something changed, so that you know when to call back /2/files/list_folder/continue to find out what changed. You supply the cursor to /2/files/list_folder/continue so that the Dropbox API knows when you last called, so that it only needs to tell you about new changes since then.
In the Java SDK, these methods correspond to listFolder and listFolderContinue. There's a sample of using them in the tutorial example.
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!