Freepark Usage Report

Resource URL

https://api.freepark.co/report/usage

Parameters

ParameterDescriptionOptionalDefault
property_id (Type is integer) False False
start_date (Type is datetime) False False
end_date (Type is datetime) False False

Example

POST https://api.freepark.co/report/usage

Request

PHP Example
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://api.freepark.co/report/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&start_date=yyyy-mm-dd&end_date=yyyy-mm-dd");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec ($ch);
echo $response;

Response

{
    "total":15
}

Error Response

{
     "error":true,
     "error_description":"Missing request arguments:start_date, end_date, property_id"
 }

Resource Information

Rate Limited False
Response Format JSON
Authentication 1