Cloudinary::download_zip_url PHP Method

download_zip_url() public static method

# @see download_archive_url
public static download_zip_url ( $options = [] )
    public static function download_zip_url($options = array())
    {
        $options["target_format"] = "zip";
        return Cloudinary::download_archive_url($options);
    }

Usage Example

Ejemplo n.º 1
0
 public function test_download_zip_url()
 {
     $result = Cloudinary::download_zip_url(array("tags" => $this->tag));
     $file = tempnam("tmp", "zip");
     file_put_contents($file, file_get_contents($result));
     $zip = new ZipArchive();
     $zip->open($file);
     $this->assertEquals(2, $zip->numFiles);
     unlink($file);
 }