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!