We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
neunygph
10 years agoExplorer | Level 4
Getting multiple thumbnails of multiple files at once ?
Is it possible to retrieve multiple thumbnails of multiple files at once ? I tried to make a request to https://photos.dropbox.com/thumbnails_batch just like the guide from https://blogs.dropbox.com/...
Greg-DB
Dropbox Community Moderator
10 years agoThat's a way of calling the API endpoint and supplying the credentials on the URL itself (instead of in a header), but the API call still returns the thumbnail data directly.
API v2 does also offer a way to do this as well as documented here under "Content-download endpoints" (i.e., using the 'authorization' and 'arg' URL parameters).
It's important to note thought that while it does technically produce a single URL that returns a thumbnail that can be accessed just via a GET request, it should be used with caution, as it could leak the access token. For example, you shouldn't use this technique client-side if the thumbnails are being shown to anyone other than the owner of the files, as the links contain the access token.
neunygph
10 years agoExplorer | Level 4
Oh I see, thanks Greg for helping me to know more about the v2 API.
Phuong
Phuong
- neunygph10 years agoExplorer | Level 4Hi Greg,
One more question please. I tried a get request to this endpoint https://content.dropboxapi.com/1/thumbnails/auto/IMG_8199.jpg with authentication token in the header and it works great. My question is: Will this get endpoint continue to be supported after 6/28/2017 when the api v1 is turned off since the end point host is from v2 but it still contain 1/ in the url. Please advice.
Thanks, - Greg-DB10 years ago
Dropbox Community Moderator
The /1/thumbnails endpoint is part of API v1 and will not be available after API v1 is retired. (The different hosts, e.g., api-content.dropbox.com and content.dropboxapi.com, are not tied to specific versions of the API. They each currently serve both API v1 and API v2.) - neunygph10 years agoExplorer | Level 4Oh ok, thank you very much.
Phuong
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!