cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Musicians, convert your MuseScore files to PDF to play music on the go! Learn more here.

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: 

how to get list of newly added files via api

how to get list of newly added files via api

maxior
New member | Level 2

How to get list of newly added files via api ?

3 Replies 3

maxior
New member | Level 2

Longpoll only returns true or false, but I need a list of new files

 
 

 

 

Здравко
Legendary | Level 20

@maxior wrote:

Longpoll only returns true or false, but I need a list of new files


That's right - 2/files/list_folder/longpoll only inform you for changes (is something changed or not). As noted in its description, could be used in combination with 2/files/list_folder/continue to get the recent changes. Before calling "longpull", you must make available valid cursor pointing the last state, so the same cursor can be used ones you get new changes to clarify what's changed. Such a cursor could be result of last call to list_folder/continue (preferred) or 2/files/list_folder/get_latest_cursor (good choice when called for the first time and no need to enumerate entire content). If you are using some SDK, corresponding methods are available.

Hope this helps.

Greg-DB
Dropbox Staff

@maxior Ð—дравко is correct. Additionally, you may find the File Access Guide and Detecting Changes Guide useful

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Здравко Legendary | Level 20
  • User avatar
    maxior New member | Level 2
What do Dropbox user levels mean?