DemoDescribeDenyConfig.php 939 B

1234567891011121314151617181920212223242526272829
  1. // Code generated by protoc-gen-volcengine-sdk
  2. // source: describeDenyConfig
  3. // DO NOT EDIT!
  4. <?php
  5. require('../../vendor/autoload.php');
  6. $client = Volc\Service\Live\Live::getInstance();
  7. $client->setAccessKey('your ak');
  8. $client->setSecretKey('your sk');
  9. $request = new Volc\Service\Live\Models\Request\DescribeDenyConfigRequest();
  10. $request->setVhost("your Vhost");
  11. $request->setDomain("your Domain");
  12. $request->setApp("your App");
  13. $response = new Volc\Service\Live\Models\Response\DescribeDenyConfigResponse();
  14. try {
  15. $response = $client->describeDenyConfig($request);
  16. } catch (Exception $e) {
  17. echo $e, "\n";
  18. } catch (Throwable $e) {
  19. echo $e, "\n";
  20. }
  21. if ($response != null && $response->getResponseMetadata() != null && $response->getResponseMetadata()->getError() != null) {
  22. echo $response->getResponseMetadata()->getError()->serializeToJsonString(), "\n";
  23. } else {
  24. echo $response->serializeToJsonString(), "\n";
  25. }