cloudinary / cloudinary_angular

Cloudinary Angular client library
MIT License
305 stars 228 forks source link

Get all image resources not working in angular (Admin API) #244

Closed MoAsmar closed 4 years ago

MoAsmar commented 4 years ago

I am trying to read all my image resources through one of the Admin API curl https://<API_KEY>:<API_SECRET>@api.cloudinary.com/v1_1/<cloud_name>/resources/image

but I couldn't get any data from angular, the cURL request is returning unkown error Also I tried using ajax call but the response was unauthorized.

I need a way to list all images in JSON from angular component, I tried the below:

image

michalkcloudinay commented 4 years ago

Hi @MoAsmar, For security reasons, you can't include your API secret in the client-side application. You can use Client-side resources to list resources from the client-side by their tags. The response is a JSON snippet containing all resources which correspond to the specified tag.

MoAsmar commented 4 years ago

Hi, I already tried that resources url using one of my tags and getting 404 error, also isn't this a security issue and anyone with the url can access my images, is there any security options to access this ?

michalkcloudinay commented 4 years ago

@MoAsmar In order to further assist and check the errors you are getting can you please open a ticket at support@cloudinary.com with your cloud name?

MoAsmar commented 4 years ago

sure thanks