public function checkProgress($progressUri) { return $this->client->get($progressUri); }
public function checkProgress($resource) { $response = $this->client->get($resource); return json_decode($response->getBody()); }
public function getMonthlyReport($product, $startDate, $statisticType, $source) { $path = implode('/', ['/billing-usage/v1/contractUsageData/monthly', $product, $source['type'], $source['id'], $statisticType, $startDate['month'], $startDate['year'], $startDate['month'], $startDate['year']]); $report = $this->client->get($path); return (string) $report->getBody(); }