Cloudinary\Api::resources_by_tag PHP Method

resources_by_tag() public method

public resources_by_tag ( $tag, $options = [] )
    function resources_by_tag($tag, $options = array())
    {
        $resource_type = \Cloudinary::option_get($options, "resource_type", "image");
        $uri = array("resources", $resource_type, "tags", $tag);
        return $this->call_api("get", $uri, $this->only($options, array("next_cursor", "max_results", "tags", "context", "moderations", "direction")), $options);
    }

Usage Example

 function test06_resources_tag()
 {
     // should allow listing resources by tag
     $result = $this->api->resources_by_tag("api_test_tag");
     $resource = $this->find_by_attr($result["resources"], "public_id", "api_test");
     $this->assertNotEquals($resource, NULL);
 }
All Usage Examples Of Cloudinary\Api::resources_by_tag