API documentation

Decrypt response from box after the GetTime command.

GET /api/car_driver/secured_parkings/:id/time_response

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...

Description

This web service returns the decrypted response from the box on the get time command

{ 
       "response" : "211029bf83e7c47647aa84aa8e17d4fdf33703"
}

Request Parameters

Parameter name Parameter type Description
id int id of the secured parking on which we want to get battery info
response string string hex representing a block of 16 bytes. This is the response from the box after a get time command is given

Response

{ 
      "response": "2016-01-19T07:43:51+00:00"
}

Status Code: 200 if OK

Status Code: 400 if the secured_parking_id param is missing

Status Code: 404 if the secured_parking with secured_parking_id doesn't exist

Status Code: 401 if request not ok or if the current user does not have parking owner rights on this parking