Time Series
Retrieve a Time Series
GETnow/timeSeries
Retrieves a list of data points containing the number of visitors over time as the metric. This can be used to plot visualisations of visitors over time as shown in the Now dashboard. It could also be used to retrieve information for further analysis elsewhere.
Query String Parameters
from | String The start date-time for the query |
to | String The end date-time for the query |
interval | StringDefault Value: Discrete time interval between points. Should be in the format |
dateFormat | String The format that any date parameters will be returned in. This takes any value permitted by Moment. |
Example Request
require_once('gosquared-php-sdk/main.php');
$GS = new GoSquared(array(
'site_token' => 'GSN-106863-S',
'api_key' => 'demo'
));
$result = $GS->now->timeSeries();
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Please fill in the required fields in the Query Builder