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: 

Re: Creating temporary links for a slideshow (one device)

Creating temporary links for a slideshow (one device)

raRaRa
Helpful | Level 6
Go to solution

Hi all,

 

I own a website where people can create a real-time slideshow from various social providers such as Instagram, Twitter, Facebook, etc.

 

 

I've received a couple of requests where people want to be able to display photos from a Dropbox folder, so I've been researching the Dropbox API to see what options I have.

 

I understand that Dropbox should not be used as a CDN to serve files to hundrends or millions of people, but in my case a slideshow is usually running on a single device, so I feel like the temporary link might be a good option.

 

Now straight to my question. I call list_folder to retrieve all the files in the app folder. For each file I'll need to call get_temporary_link to get a direct link to the file. Now if the directory has 100 files, then it means that I'll have to make 100 calls to the Dropbox API in order to get temporary link for all the files. I'm very concerned with the API rate limit as this might easily surpass it.

 

 

This probably means that I need to re-think my strategy.

 

Here are some ideas that I have:

1. Call get_temporary_link on demand. The slideshow javascript will call an endpoint on my website where it requests for a direct link to the picture. My endpoint then calls the Dropbox API get_temporary_link and returns it to the slideshow.

2. Somehow serve the file from Dropbox through my website. Not quite sure how I would tackle this.

3. ?

 

Any help on this will be highly apprecicated.

 

Thanks!

 

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

The Dropbox API rate limiting system is actually relatively generous. We don't have any specific numbers documented, but making 100 calls shouldn't be an issue. 

 

Alternatively, you can download the files directly from the Dropbox API, e.g., using /2/files/download or /2/files/get_thumbnail, and then cache and serve them from your app. You would still need one call per file though.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

The Dropbox API rate limiting system is actually relatively generous. We don't have any specific numbers documented, but making 100 calls shouldn't be an issue. 

 

Alternatively, you can download the files directly from the Dropbox API, e.g., using /2/files/download or /2/files/get_thumbnail, and then cache and serve them from your app. You would still need one call per file though.

raRaRa
Helpful | Level 6
Go to solution

Thank you Greg. Much appreciated.

Need more support?