本文整理汇总了PHP中Cloudinary::build_archive_params方法的典型用法代码示例。如果您正苦于以下问题:PHP Cloudinary::build_archive_params方法的具体用法?PHP Cloudinary::build_archive_params怎么用?PHP Cloudinary::build_archive_params使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cloudinary
的用法示例。
在下文中一共展示了Cloudinary::build_archive_params方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: download_archive_url
public static function download_archive_url($options = array())
{
$options["mode"] = "download";
$params = Cloudinary::build_archive_params($options);
$params = Cloudinary::sign_request($params, $options);
return Cloudinary::cloudinary_api_url("generate_archive", $options) . "?" . preg_replace("/%5B\\d+%5D/", "%5B%5D", http_build_query($params));
}
示例2: create_archive
public static function create_archive($options = array(), $target_format = NULL)
{
$params = \Cloudinary::build_archive_params($options);
if ($target_format != NULL) {
$params["target_format"] = $target_format;
}
return Uploader::call_api("generate_archive", $params, $options);
}