cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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 do I get programmatically Dropbox links of all subdirectories in a folder?

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

tohsumi
Explorer | Level 3
Go to solution

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

Greg-DB
Dropbox Staff
Go to solution

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

Greg-DB
Dropbox Staff
Go to solution

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. 

tohsumi
Explorer | Level 3
Go to solution

Thank you very much!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    tohsumi Explorer | Level 3
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?