QueryResource.php 307 B

123456789101112131415161718
  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. 'Type' => 0,
  10. ];
  11. $response = $client->QueryResource($body);
  12. echo $response;