API for Approved tracks

 
  •  Main information
  •  Set approved periods 
  • Get approved tracks
  • Track player
     
Main information
API Address: 
https://<address>/api/api.php
Authorization: plain http
 
Set approved periods 
Command:
https://<address>/api/api.php?cmd=set_approved_tracks&veh=Р852ОВ77&ts=1537945200&te=1537952400
 
Answer:
 {"code":0,"msg":"OK updated"}
 
Get approved tracks
Command:
https://<address>/api/api.php?cmd=get_approved_tracks&veh=Р852ОВ77&ts=1537945200&te=1537952400
 
Answer:
{"code":0, "data":{ "approved":[{"length":2.8051348330013,"ts":1537948809,"te":1537949431,"max_sp eed":"59","avg_speed":26}], "notapproved":[{"length":1.8650025635569,"ts":1537945206,"te":1537946030,"max _speed":"40","avg_speed":12},{"length":4.1987356239849,"ts":1537948298,"te":1 537948798,"max_speed":"65","avg_speed":37}] }}
 
Track player
 Link: https://<address>/api/track_player.php?login=demo&pass=demo&ts=1536933600&te=1536940800&veh=в 848ае199&lang=en
URL can be used as iframe src