Need to see if your shared folder is taking up space on your dropbox đšâđ»? Find out how to check here.
Forum Discussion
Daemonzoid
9 years agoExplorer | Level 3
Thumbnails
is there a way to GET tumbnails in batch now? getting the thumbnails one by one is really to slow to be usefull.
- 9 years agoNo, the Dropbox API doesn't currently offer a batch thumbnail endpoint, but I'll be sure to pass this along as a feature request.
Greg-DB
Dropbox Community Moderator
9 years agoNo, the Dropbox API doesn't currently offer a batch thumbnail endpoint, but I'll be sure to pass this along as a feature request.
Greg-DB
Dropbox Community Moderator
9 years agoThe Dropbox API now offers the ability to get thumbnails in batches:
https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail_batch
If you're using an official SDK, there will also be a corresponding method for this endpoint.
https://www.dropbox.com/developers/documentation/http/documentation#files-get_thumbnail_batch
If you're using an official SDK, there will also be a corresponding method for this endpoint.
- Jeroen B.18 years agoExplorer | Level 4
Does anyone have an example of working code, preferably in Python?
The method is called âfiles_get_thumbnail_batchâ, but I am at a loss how to construct the argument. The docs call it âentriesâ and explain that this is âa list of filesâ, but what does that mean? What object type is meant, and how do I construct it?
Thanks!
- Greg-DB8 years ago
Dropbox Community Moderator
Jeroen B.1 Apologies, the Python documentation doesn't properly include the type for parameters that take lists like that.
The files_get_thumbnail_batch entries parameter should be a list of ThumbnailArg. That would look like:
entries = [ dropbox.files.ThumbnailArg(path="/test.jpg", format=dropbox.files.ThumbnailFormat.png, size=dropbox.files.ThumbnailSize.w128h128), dropbox.files.ThumbnailArg(path="/test.png", format=dropbox.files.ThumbnailFormat.jpeg) ] print(dbx.files_get_thumbnail_batch(entries=entries))- Jeroen B.18 years agoExplorer | Level 4
Thanks, that should do it!
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!