Cloudinary\Api::transformations PHP Method

transformations() public method

public transformations ( $options = [] )
    function transformations($options = array())
    {
        return $this->call_api("get", array("transformations"), $this->only($options, array("next_cursor", "max_results")), $options);
    }

Usage Example

Example #1
0
 function test12_transformations()
 {
     // should allow listing transformations
     $result = $this->api->transformations();
     $transformation = $this->find_by_attr($result["transformations"], "name", "c_scale,w_100");
     $this->assertNotEquals($transformation, NULL);
     $this->assertEquals($transformation["used"], TRUE);
 }