cloudinary / cloudinary-react

React components that utilize Cloudinary functionality
MIT License
501 stars 219 forks source link

Getting tags with images #247

Closed feruz111 closed 2 years ago

feruz111 commented 2 years ago

Hi,

Is it possible to get images with tags, (maybe with asset list) or this feature doesn't exist

Thanks

PixelCook commented 2 years ago

Hey there,

You can either use the Node SDK if you would like to stick with an SDK, otherwise you can always fetch from the API. https://cloudinary.com/documentation/admin_api#tags Just reference the curl example, and if you are unfamiliar with converting curls to fetches you can always use a third-party tool like -https://kigiri.github.io/fetch/.

I hope this helps! Thanks

feruz111 commented 2 years ago

Ok thanks, but this api doesn’t work inside react does it?

On 30 May 2022, at 14:45, Zachary @.***> wrote:

Hey there,

You can either use the Node SDK if you would like to stick with an SDK, otherwise you can always fetch from the API. https://cloudinary.com/documentation/admin_api#tags https://cloudinary.com/documentation/admin_api#tags Just reference the curl example, and if you are unfamiliar with converting curls to fetches you can always use a third-party tool like -https://kigiri.github.io/fetch/ https://kigiri.github.io/fetch/.

I hope this helps! Thanks

— Reply to this email directly, view it on GitHub https://github.com/cloudinary/cloudinary-react/issues/247#issuecomment-1141178920, or unsubscribe https://github.com/notifications/unsubscribe-auth/APEDQRO37PID7GWI3XREJ4DVMTA6ZANCNFSM5XKQ45HQ. You are receiving this because you authored the thread.

feruz111 commented 2 years ago

Thanks a lot for help

On 30 May 2022, at 14:45, Zachary @.***> wrote:

Hey there,

You can either use the Node SDK if you would like to stick with an SDK, otherwise you can always fetch from the API. https://cloudinary.com/documentation/admin_api#tags https://cloudinary.com/documentation/admin_api#tags Just reference the curl example, and if you are unfamiliar with converting curls to fetches you can always use a third-party tool like -https://kigiri.github.io/fetch/ https://kigiri.github.io/fetch/.

I hope this helps! Thanks

— Reply to this email directly, view it on GitHub https://github.com/cloudinary/cloudinary-react/issues/247#issuecomment-1141178920, or unsubscribe https://github.com/notifications/unsubscribe-auth/APEDQRO37PID7GWI3XREJ4DVMTA6ZANCNFSM5XKQ45HQ. You are receiving this because you authored the thread.

esguerrat commented 2 years ago

Hi there,

If you need this in your front-end code, you could use the client-side asset list feature. You would need to apply a common tag to each file that you want to be returned. The client-side asset list returns a .JSON file with the basic details of all images tagged with a specific tag. You may need to enable this option in your account settings; there are instructions on that documentation page explaining how to do so.

Let us know if you have any questions.