2

I have a folder (Photos/Sample Album) in Dropbox. What I want to do is display all the images in that folder on my website.
Solution I have been able to come up with is following: Use Metadata API to get all the files of the folder. Then I can use Media API or ShareLink.
But to do get sharelinks for n files, I will need to make (n+1) calls, call for each file. Is there a faster way to do this ? Can I just make one call get all the links for specified folder.
I am trying to make these calls in JavaScript.

PhantomM
  • 825
  • 6
  • 17
  • 34

1 Answers1

0

No, unfortunately the Dropbox API doesn't currently provide a way to get these links in bulk. We'll consider it a feature request.

Greg
  • 16,359
  • 2
  • 34
  • 44
  • Until then what is the best way to get shared links... I mean of 2000 files in one folder. It seems crazy to make 2000 API calls!!! – Llewellyn Dec 04 '16 at 16:27
  • @Llewellyn Thanks for the feedback. One new note on this, if the links have already been created, you can use [/2/sharing/list_shared_links](https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links) to list them in bulk. The API doesn't offer a way to create them in bulk though. – Greg Dec 05 '16 at 18:22
  • 1
    @SethKitchen No, no change on this. You can list existing links using /2/sharing/list_shared_links, but there still isn't a way to create new ones in bulk. – Greg Jun 03 '19 at 20:35