FetchResource.php 380 B

1234567891011121314151617181920
  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. 'Url'=>'公网可以访问的url,需要申请正向代理',
  10. 'Name'=>'测试',
  11. ];
  12. $response = $client->FetchResource($body);
  13. echo $response;