Skip to main content

Can't list images/video [ReactJs]

Comments

5 comments

  • Raya Straus

    Hi Sooonr,

     

    Can you please share with us your code and the method you're using to list the images? In general, the list resources method is specific to our backend SDK frameworks and is currently not available in the React SDK.

    Thanks 

    0
  • Sooonr

    Hi Raya,

    That's the code I use to get my list : 

    .then(res => {

    console.log(res.data.ressources);
    this.setState({gallery:res.data.resources});
     
    });
     
    Thanks
    0
  • Raya Straus

    Hi Sooonr,

     

    Using resources is not available client side since it means exposing your API secret. That being said, you can use list to list all videos with a specific tag.

    For example, 

    http://res.cloudinary.com/<cloud_name>/video/list/<tag_name>.json

      

    You could take a look at this tutorial for more information and pointers- https://github.com/cloudinary-developers/build-a-mini-netflix/blob/master/React/display-videos.md

    0
  • Sooonr

    Hi,

    I have already try this turorial but I still have an error 401.

    I even tried with the tag on an image but still not working.

     

    0
  • Raya Straus

    Hi Sooonr,

    Please open a ticket at support@cloudinary.com with more details on your implementation. 

     

     

    0

Post is closed for comments.