You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

saravananct143's avatar
saravananct143
Explorer | Level 3
7 years ago

How to get the Dropbox File List using httpclient or WebRequest?

How to get the Dropbox File List using httpclient or WebRequest?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    In order to list the contents of a folder, you should use /2/files/list_folder and /2/files/list_folder/continue

     

    It sounds like you're referring to using .NET, so we recommend using the official API v2 .NET SDK. It has corresponding ListFolder and ListFolderContinue methods.

     

    If can't or don't want to though, you can make the HTTPS requests directly to the HTTPS endpoints. The /2/files/list_folder and /2/files/list_folder/continue documentation covers the expected format, and contains curl examples you can translate for your preferred HTTPS client.

    • saravananct143's avatar
      saravananct143
      Explorer | Level 3

      Thanks for Reply,

       

      POST /2/sharing/list_folders

      Host: https://api.dropboxapi.com

      User-Agent: api-explorer-client

      Authorization: Bearer <REDACTED>

      Content-Type: application/json

       

      I'm trying this in postman. But i'm not get any values. One more doubts.  How can i generate the AccessToken ?. My Project requirement without dropbox client dll, through api's i need to get the data.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        What was in the HTTPS response? It should either contain an error or the result.

         

        Also, I redacted it for you, but you should revoke that access token since you posted it publicly.

         

        It looks like you already figured out how to get an access token, since you posted one, but for reference, the OAuth guide goes over how to.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,918 PostsLatest Activity: 2 days ago
334 Following

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!