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?
With the API v2 Java SDK, you should use listFolder (or listFolderBuilder) and listFolderContinue to list the contents of a folder.
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.
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.