Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
is there a way to GET tumbnails in batch now? getting the thumbnails one by one is really to slow to be usefull.
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!
@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))
Thanks, that should do it!
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
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!