This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Can't list images/video [ReactJs]

Comments

5 comments

  • Avatar
    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
    Comment actions Permalink
  • Avatar
    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
    Comment actions Permalink
  • Avatar
    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
    Comment actions Permalink
  • Avatar
    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
    Comment actions Permalink
  • Avatar
    Raya Straus

    Hi Sooonr,

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

     

     

    0
    Comment actions Permalink

Post is closed for comments.