DemoListBillDetail.php 601 B

1234567891011121314151617181920212223242526
  1. <?php
  2. require('../../vendor/autoload.php');
  3. use Volc\Service\Billing;
  4. $client = Billing::getInstance();
  5. // call below method if you dont set ak and sk in ~/.volc/config
  6. $ak = "<Your AK>";
  7. $sk = "<Your SK>";
  8. $client->setAccessKey($ak);
  9. $client->setSecretKey($sk);
  10. $response = $client->listBillDetail(['query' => [
  11. 'BillPeriod' => '2022-01',
  12. 'Limit' => 10,
  13. 'Offset' => 0,
  14. 'GroupTerm' => 0,
  15. 'GroupPeriod' => 2,
  16. 'Product' => '',
  17. 'BillingMode' => '',
  18. 'BillCategory' => '',
  19. 'InstanceNo' => '',
  20. 'IgnoreZero' => '0',
  21. 'NeedRecordNum' => '0']]);
  22. echo $response;