SingleBatchAppend.php 654 B

12345678910111213141516171819202122232425262728
  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. 'List' => [
  10. [
  11. 'Phone'=>'your phone',
  12. 'Resource' => '9b39e17fb12444c78f20d6551469a6f0',
  13. 'NumberPoolNo'=>'NP162213338604093530',
  14. 'NumberType'=>0,
  15. 'TriggerTime'=>'2022-05-18 19:18:00',
  16. 'Type'=>0,
  17. 'SingleOpenId'=>'9b39e17fb12444c78f20d6551469a6e3',
  18. ],
  19. ],
  20. ];
  21. $response = $client->SingleBatchAppend($body);
  22. echo $response;