Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

bellomsean's avatar
bellomsean
Helpful | Level 5
5 years ago
Solved

Chooser

How can I interact with the dropbox API and fetch the root folder containing all my files and folders in my dropbox account?
i.e I want to be able to call the API and get back just one folder containing all my files and folders.

5 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    5 years ago

    In your subject, you seem to be referring to the "Dropbox Chooser", which is a pre-built way for developers to easily allow their end users to choose files or folders from their Dropbox accounts to give to the third party app. If you're interested in using that, you can find more information here.

     

    From your description though, it sounds like that may not be quite the functionality you're looking for. If you want to be able to programmatically list the contents of a folder, such as the root folder, you'd need to use the Dropbox API instead. The Dropbox API lets third party apps list, upload, and download files and folders, among other operations. You can find everything you need to get started with the Dropbox API, including documentation and tutorials, here. For instance, to list the contents of a folder, including the root folder, you'd use the /2/files/list_folder[/continue] endpoints (or corresponding methods in an SDK/library). I also recommend reading the File Access Guide as it sounds relevant to your use case.

     

  • bellomsean's avatar
    bellomsean
    Helpful | Level 5
    5 years ago

    Thanks for the prompt reply.

    Yes, it is Dropbox Chooser which I'm already using the functionality but I want the end-users to be able to select the root folder that contains all the files and folders in their dropbox account.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    5 years ago

    Thanks for clarifying. Yes, in that case you'd need to use the API since the Chooser doesn't support selecting the root itself.

  • bellomsean's avatar
    bellomsean
    Helpful | Level 5
    5 years ago

    Thank you.

    It would be nice if you could point me to the API link I can use to select the root itself.


About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

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

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!