cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

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 do I get programmatically Dropbox links of all subdirectories in a folder?

Highlighted

How do I get programmatically Dropbox links of all subdirectories in a folder?

Explorer | Level 3

Greetings.   Our company has Dropbox Business.   We would like to get Dropbox HTML links, e.g. https://www.dropbox.com/sh/{long string}/{long string}, for each subdirectory in some folder.   There are many (> 100) folders in this subdirectory, so I would like to automate the process.   Is there a way to accomplish this?   Any program or programming language (C++, Perl, Python, etc.) is fine.   Many thanks!

1 Accepted Solution

Accepted Solutions
Highlighted

Re: How do I get programmatically Dropbox links of all subdirectories in a folder?

Dropboxer

Yes, Dropbox does offer an API you can use for programmatically interacting with Dropbox lke this. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here:

https://www.dropbox.com/developers 

Specifically, to create a shared link to any file or folder, you can use the /2/sharing/create_shared_link_with_settings endpoint:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_...

Or, to list existing shared links, use /2/sharing/list_shared_links:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links

Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:

https://www.dropbox.com/developers/documentation

Those have corresponding native methods for the HTTPS endpoints. 

View solution in original post

2 Replies 2
Highlighted

Re: How do I get programmatically Dropbox links of all subdirectories in a folder?

Dropboxer

Yes, Dropbox does offer an API you can use for programmatically interacting with Dropbox lke this. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here:

https://www.dropbox.com/developers 

Specifically, to create a shared link to any file or folder, you can use the /2/sharing/create_shared_link_with_settings endpoint:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_...

Or, to list existing shared links, use /2/sharing/list_shared_links:

https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links

Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:

https://www.dropbox.com/developers/documentation

Those have corresponding native methods for the HTTPS endpoints. 

View solution in original post

Highlighted

Re: How do I get programmatically Dropbox links of all subdirectories in a folder?

Explorer | Level 3

Thank you very much!

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?