AnalyticsDashboard params are not headers

Also 'continuous' needs to be a string for the API to process it.
This commit is contained in:
Jorgen Phillips
2017-12-24 12:41:38 -06:00
parent 99d89e7dc3
commit 4e3d307bdd

View File

@@ -114,7 +114,7 @@ class Zones implements API
*/
public function getAnalyticsDashboard(string $zoneID, string $since = '-10080', string $until = '0', bool $continuous = true): \stdClass
{
$response = $this->adapter->get('zones/' . $zoneID . '/analytics/dashboard', [], ['since' => $since, 'until' => $until, 'continuous' => $continuous]);
$response = $this->adapter->get('zones/' . $zoneID . '/analytics/dashboard', ['since' => $since, 'until' => $until, 'continuous' => var_export($continuous, true)], []);
return json_decode($response->getBody())->result;
}