cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

[Java] How to use getMetaData() API in v2 to fetch the folder results

New member | Level 2
New member | Level 2

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?

1 Accepted Solution

Accepted Solutions
Highlighted

Re: [Java] How to use getMetaData() API in v2 to fetch the folder results

Dropboxer
Dropboxer

With the API v2 Java SDK, you should use listFolder (or listFolderBuilder) and listFolderContinue to list the contents of a folder.

View solution in original post

3 Replies 3
Highlighted

Re: [Java] How to use getMetaData() API in v2 to fetch the folder results

Dropboxer
Dropboxer

With the API v2 Java SDK, you should use listFolder (or listFolderBuilder) and listFolderContinue to list the contents of a folder.

View solution in original post

Highlighted

Re: [Java] How to use getMetaData() API in v2 to fetch the folder results

New member | Level 2
New 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.

Highlighted

Re: [Java] How to use getMetaData() API in v2 to fetch the folder results

Dropboxer
Dropboxer

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.

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?