Get driver activity data

 
Example:
https://<address>/api/api.php?cmd=gettachodata
 
Parameters:
cmd: gettachodata
agent_id:   AgentID of vehicle/vehicles OR
 imei: Device ID. 
ts: start timestamp
te: end timestamp
Method: GET
 
Request:
https://<address>/api/api.php?cmd=gettachodata&ts=1624568400&te=1624586400&agent_id=120407,120646
 
Answer:
{
   "С 229 СК 750": {
       "First driver": {
           "Work": 4997,
           "Drive": 248,
           "Rest": 9117
       },
       "Second driver": {
           "Driver available": 1722,
           "Rest": 9117
       }
   },
   "А 192 АК 790": {
       "First driver": {
           "Drive": 5436,
           "Work": 1706,
           "Rest": 9084
       },
       "Second driver": {
           "Driver available": 4995,
           "Rest": 9084
       }
   }
}