Using the cloudinary API I can get a list of images by GET
ting the following URL:
https://API_KEY:API_SECRET@api.cloudinary.com/v1_1/CLOUD_NAME/resources/image/upload
However, using this from client-side JavaScript would expose my account's API key and secret.
It seems like getting a list of images should be possible without exposing my account's credentials.
I've looked at the Cloudinary AngularJS client, which has a sample project that implements a slideshow of photos in an account. From what I can tell, this project uses the following line to get a list of photos in the cloudinary account
var url = $.cloudinary.url('myphotoalbum', {format: 'json', type: 'list'});
But I can't get this call to return anything.
The cloudinary JQuery documentation does not describe the syntax for $.cloudinary.url()
; the only resource I've found is on the Cloudinary JQuery Github Page, which states that
$.cloudinary.url(public_id, options) // Returns a cloudinary URL based on your on your configuration and the given options.
What is public_id
? What are the options
?