Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Billy S.
10 years agoNew member | Level 1
delta equivalent for Core API v2
I wonder if the following is the right way to detect remote changes in Java/Android using Core API v2:
ListFolderGetLatestCursorResult cursor = client.files().listFolderGetLatestCursor(""); ListFo...
Greg-DB
Dropbox Community Moderator
10 years agoThe equivalent of v1's getDelta (without a cursor) is listFolder, and the equivalent of getDelta (with a cursor) is listFolderContinue. Likewise, the equivalent of getDeltaLatestCursor is listFolderGetLatestCursor.
If you want the full state of the files in the account, you should start with listFolder (as opposed to listFolderGetLatestCursor) and continue on with listFolderContinue.
If you only want new changes, and don't care about existing items, then you can use listFolderGetLatestCursor and listFolderContinue.
In either case, you do need to store the last cursor you received (e.g., from listFolderContinue), and use that when calling back to listFolderContinue again. If you get the latest cursor from listFolderGetLatestCursor each time though, you won't see changes that occurred in the interim.
BCKI
9 years agoNew member | Level 2
It seems like in v1 /delta returned ANY new changes in the entire Dropbox, while in v2 it is only able to see a specified folder path. Am I not understanding something here?
- BCKI9 years agoNew member | Level 2
I figured it out, thanks to this thread: https://www.dropboxforum.com/t5/API-support/list-folder-continue-Always-empty/td-p/164977 (Steve M.)
I forgot to send the recursive parameter.
:)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!