One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
sverdon
5 years agoExplorer | Level 3
Create shared link for each file in folder, then retrieve those links for database insertion
I'm curious how best to achieve the end-result mentioned in the title?
My client has a few folders with a large number of documents that he would like to create shared links for and then insert those links into a MySQL database (rather then going through and creating each link manually, then copy and pasting into the tables). What would be the best way to achieve this using the API (what functions to use, etc.)?
Any help is appreciated!
- ЗдравкоLegendary | Level 20
Hi sverdon,
You can enumerate all places of interest, using 2/files/list_folder / continue and for every one file considered target can create a shared link using 2/sharing/create_shared_link_with_settings. Once you get the links you want, you can make whatever you want with them.
Hope this gives direction.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 5 hours ago
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!