123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?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);
- }
|