API version v1.0
Freepark Device Usage Report
https://api.freepark.co/report/device/usage
Parameter | Description | Optional | Default |
---|---|---|---|
property_id | (Type is integer) | False | False |
device_id | (Type is integer) | False | False |
start_date | (Type is datetime) | False | False |
end_date | (Type is datetime) | False | False |
POST | https://api.freepark.co/report/device/usage |
PHP Example
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://api.freepark.co/report/device/usage");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded' ,"Authorization: Bearer ".$access_token));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"property_id=xx&device_id=x&start_date=yyyy-mm-dd&end_date=yyyy-mm-dd");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec ($ch);
echo $response;
{
"total":92
}
{
"error":true,
"error_description":"Missing request arguments:start_date, end_date, property_id, device_id"
}
Rate Limited | False |
Response Format | JSON |
Authentication | 1 |