Files
plugins/QNUpload/Qiniu/pfop.php
chorblack e75f275ef4
Some checks failed
定时更新GitHub源插件 / 自动更新GitHub插件 (push) Has been cancelled
Initial commit
2026-03-07 11:19:25 +08:00

49 lines
978 B
PHP

<?php
require_once('auth_digest.php');
// --------------------------------------------------------------------------------
// class Qiniu_Pfop
class Qiniu_Pfop {
public $Bucket;
public $Key;
public $Fops;
public $NotifyURL;
public $Force;
public $Pipeline;
public function MakeRequest($self)
{
global $QINIU_API_HOST;
$ReqParams = array(
'bucket' => $this->Bucket,
'key' => $this->Key,
'fops' => $this->Fops,
'notifyURL' => $this->NotifyURL,
'force' => $this->Force,
'pipeline' => $this->Pipeline
);
$url = $QINIU_API_HOST . '/pfop/';
return Qiniu_Client_CallWithForm($self, $url, $ReqParams);
}
}
function Qiniu_PfopStatus($client, $id)
{
global $QINIU_API_HOST;
$url = $QINIU_API_HOST . '/status/get/prefop?';
$params = array('id' => $id);
return Qiniu_Client_CallWithForm($client, $url, $params);
}