What kind of Cloudinary API should I use?
I am trying to use Cloudinary with Flask.
How can I get a batch of photo files from Cloudinary's subfolders containing photos? Can I get it in bulk with the CloudinaryImage method? Or do you use other methods?
-
Hi,
This isn't specific to Flask, but you can use our Python SDK to fetch a list of images using our rate-limited Admin API:
https://cloudinary.com/documentation/admin_api#browse_resources
To fetch all images of type 'upload' in a folder called 'test' you can do this:cloudinary.api.resources( type = "upload", prefix = "test")
The response will be a list of matching resources.Because this API is rate-limited, it's suitable for administrative tasks, but not a replacement for having your own database which contains a list of the images you want to show on each page. An alternative, if you need to show images from a 'live' request to our system is to use a Client-Side Resource List which is a JSON list of images that are tagged with a specific tag: https://cloudinary.com/documentation/advanced_url_delivery_options#client_side_resources
Please let me know if that helps and if there's anything else I can help with
Regards,
Stephen0 -
I delayed to reply. Thank you very much.
0 -
No problem at all; you're welcome :)
1
Post is closed for comments.
Comments
3 comments