setAccessKey($config->ak); $client->setSecretKey($config->sk); $body = [ 'StartTime' => $config->startTime, 'EndTime' => $config->endTime, 'Domain' => $config->exampleDomain, "Metric" => "flux", ]; $response = $client->describeAccountingData($body); var_dump($response);