Resources Admin API not returning assets correctly

Comments

2 comments

  • Avatar
    Francis Tagbo

    Hi,

     

    If the resource_type is not specified in the options of your request, the default value is 'image'.

    It seems that your account has only 1 image with the prefix: "media/".

    You can add parameter resource_type: "video" to list the videos.

    0
    Comment actions Permalink
  • Avatar
    eventPower

    Francis.  Duh!  It was definitely a stupidly-simple solution!  But I really really really appreciate your help!

    All the videos are being returned with:

    Cloudinary::Api.resources(prefix: "media/", type: "upload", max_results: 10, resource_type: "video")

     

    Thanks!

    1
    Comment actions Permalink

Please sign in to leave a comment.