pfop.php 978 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. require_once('auth_digest.php');
  3. // --------------------------------------------------------------------------------
  4. // class Qiniu_Pfop
  5. class Qiniu_Pfop {
  6. public $Bucket;
  7. public $Key;
  8. public $Fops;
  9. public $NotifyURL;
  10. public $Force;
  11. public $Pipeline;
  12. public function MakeRequest($self)
  13. {
  14. global $QINIU_API_HOST;
  15. $ReqParams = array(
  16. 'bucket' => $this->Bucket,
  17. 'key' => $this->Key,
  18. 'fops' => $this->Fops,
  19. 'notifyURL' => $this->NotifyURL,
  20. 'force' => $this->Force,
  21. 'pipeline' => $this->Pipeline
  22. );
  23. $url = $QINIU_API_HOST . '/pfop/';
  24. return Qiniu_Client_CallWithForm($self, $url, $ReqParams);
  25. }
  26. }
  27. function Qiniu_PfopStatus($client, $id)
  28. {
  29. global $QINIU_API_HOST;
  30. $url = $QINIU_API_HOST . '/status/get/prefop?';
  31. $params = array('id' => $id);
  32. return Qiniu_Client_CallWithForm($client, $url, $params);
  33. }