You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
554 B
24 lines
554 B
<?php
|
|
require('../../vendor/autoload.php');
|
|
|
|
use Volc\Service\Billing;
|
|
|
|
$client = Billing::getInstance();
|
|
|
|
// call below method if you dont set ak and sk in ~/.volc/config
|
|
$ak = "<Your AK>";
|
|
$sk = "<Your SK>";
|
|
$client->setAccessKey($ak);
|
|
$client->setSecretKey($sk);
|
|
|
|
$response = $client->listBill(['query' => [
|
|
'BillPeriod' => '2022-01',
|
|
'Limit' => 10,
|
|
'Offset' => 0,
|
|
'Product' => '',
|
|
'BillingMode' => '',
|
|
'BillCategoryParent' => '',
|
|
'PayStatus' => '',
|
|
'IgnoreZero' => '0',
|
|
'NeedRecordNum' => '0']]);
|
|
echo $response; |