API variable in PHP to get all image by tags


1 comment

  • Avatar
    Aleksandar Kostadinov

    Hi Edam,

    You will need to first initialize the $api variable to be an instance of the Cloudinary/Api class.

    For example, in your script, you would import the relevant classes -

    require 'autoload.php';
    require 'src/Api/Error.php';
    require 'src/Api/NotFound.php';
    require 'src/Api.php';

    Then create the object and call the relevant method -

    $api = new \Cloudinary\Api();
    $api->resources_by_tag($tag, $options = array());

    Please try this out and let me know how it goes.

    Comment actions Permalink

Please sign in to leave a comment.