We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

maxior's avatar
maxior
New member | Level 2
3 years ago

how to get list of newly added files via api

How to get list of newly added files via api ?

3 Replies

  • maxior's avatar
    maxior
    New member | Level 2
    3 years ago

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

     
     

     

     

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    3 years ago

    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.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 3 hours ago
410 Following

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 or Facebook.

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!