Skip to main content

Cloudinary search Undefined function

Comments

1 comment

  • Erwin Lukas

    Hi Xadani,

    I believe you also opened a ticket with us on this.

    In order to use our search API with PHP SDK, you need to create a search object first.
    Here's the example:

    $search = new \Cloudinary\Search();
    $results = $search->expression('resource_type=image AND type=upload')->execute();
    echo $results['resources'][0]['secure_url'];

    Hope this helps.

    Regards,
    Erwin Lukas

    0

Post is closed for comments.