PHP zgldh\QiniuStorage\Plugins Namespace

Classes

Name Description
Fetch Class Fetch 调用qiniu的fetch指令
$disk = \Storage::disk('qiniu');
$re = $disk->getDriver()->fetch('http://abc.com/foo.jpg', 'bar.jpg');
PrivateDownloadUrl Class PrivateDownloadUrl 得到私有资源下载地址
$disk = \Storage::disk('qiniu');
$re = $disk->getDriver()->privateDownloadUrl('foo/bar1.css');
PrivateImagePreviewUrl Class PrivateImagePreviewUrl 获取私有bucket图片预览URL
$disk = \Storage::disk('qiniu');
$re = $disk->getDriver()->privateImagePreviewUrl('foo/bar1.css',$ops);
Qetag Class Qetag 得到最后一次上传文件的 Qetag
$disk = \Storage::disk('qiniu');
$re = $disk->getDriver()->qetag();
VerifyCallback Class verifyCallback 验证回调是否正确
$disk = \Storage::disk('qiniu');
$re = $disk->getDriver()->verifyCallback('application/x-www-form-urlencoded', $request->header('Authorization'), 'callback url', $request->getContent());