BatchAppend.php 432 B

123456789101112131415161718192021222324
  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' => '106d2984fbf0480480cbc8b98d609592',
  10. 'PhoneList' => [
  11. [
  12. 'Phone' => 'your phone',
  13. ]
  14. ],
  15. ];
  16. $response = $client->BatchAppend($body);
  17. echo $response;