UpdateTask.php 467 B

123456789101112131415161718192021
  1. <?php
  2. use Volc\Service\Notify;
  3. require('../../../vendor/autoload.php');
  4. require('../../src/Service/Notify.php');
  5. $client = Notify::getInstance();
  6. $client->setAccessKey("your ak");
  7. $client->setSecretKey("your sk");
  8. $body = [
  9. 'TaskOpenId' => '0742e8123ada40cb9efa6b55e8fced7a',
  10. 'Concurrency'=> 3,
  11. 'StartTime' => '2022-05-17 00:00:00',
  12. 'EndTime' => '2022-05-17 18:30:00',
  13. 'Recall' => 1,
  14. ];
  15. $response = $client->UpdateTask($body);
  16. echo $response;