Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
vb_dolphiner
8 years agoNew member | Level 2
[Java] How to use getMetaData() API in v2 to fetch the folder results
I was already using getMetaData() API in v1 to fetch the folder content. How to use the same to fetch the folder content in v2 as I can no longer find the contents API in v2?
- 8 years ago
With the API v2 Java SDK, you should use listFolder (or listFolderBuilder) and listFolderContinue to list the contents of a folder.
Greg-DB
Dropbox Community Moderator
8 years agoWith the API v2 Java SDK, you should use listFolder (or listFolderBuilder) and listFolderContinue to list the contents of a folder.
- vb_dolphiner8 years agoNew member | Level 2
If my Dropbox contains a long list of files and I am caching this file list, I know how to get the entire list. But how can I request for a list that contains only deleted or added files since my last request. I could find the API getCursor but I am not sure how to use this in my scenario.
- Greg-DB8 years ago
Dropbox Community Moderator
Once you have a cursor, e.g., from a previous call to listFolder or listFolderContinue, you can later call back to listFolderContinue, passing in that cursot value, to get information on only what has changed.
There's a basic example here. That example is mainly for paging through current results, but it works the same way for getting updated results over time.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!