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 agoThe different versions of the API work differently, so it won't be a matter of just replacing /1/thumbnails with /2/get_thumbnail. For API v2, you'll need to use the 'authorization' and 'arg' URL parameters, per the documentation I linked to earlier:
https://www.dropbox.com/developers/documentation/http/documentation#formats
For example, getting the thumbnail for a files at /test.jpg would look like this:
https://content.dropboxapi.com/2/files/get_thumbnail?authorization=Bearer%20ACCESS_TOKEN_HERE&arg=%7B%22path%22%3A%20%22%2Ftest.jpg%22%2C%22format%22%3A%20%22jpeg%22%2C%22size%22%3A%20%22w64h64%22%7D
neunygph
10 years agoExplorer | Level 4
Hi Greg,
I tried the provided url with my token and an actual image path, but I got a weird error message saying "Error in call to API function "files/get_thumbnail": Your app is not currently allowed to use API v2". Wonder how this happens since I have been using v2, it's not that my app is still on development mode, I haven't submitted/requested for production yet. Wonder if this is why.
Thanks,
I tried the provided url with my token and an actual image path, but I got a weird error message saying "Error in call to API function "files/get_thumbnail": Your app is not currently allowed to use API v2". Wonder how this happens since I have been using v2, it's not that my app is still on development mode, I haven't submitted/requested for production yet. Wonder if this is why.
Thanks,
- Greg-DB10 years ago
Dropbox Community Moderator
That error isn't related to your app's development or production status. Did you potentially use an access token for an app with the "file type" permission though (as opposed to full Dropbox or app folder)? The file type permission isn't supported by API v2.
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!