This commit is contained in:
48
QNUpload/Qiniu/pfop.php
Normal file
48
QNUpload/Qiniu/pfop.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user