User Manual
Version 7.6
×

Raw data by IMEI

 
Example:
https://<address>/api/api.php?cmd=ag_events
 
Parameters:
cmd : ag_events
imei : imei of the device
ts : start time of sampling (unixtimestamp)
te : stop time of sampling (unixtimestamp)
 
Request:
https://<address>/api/api.php?cmd=ag_events&ts=1498201000&te=1498201200&imei=356307045913463
 
Answer:
{
 "code": 0,
 "data": {
 "1498201016": {
 "alt": 33,
 "lat": "47.2124",
 "lon": "39.6922",
 "sat": 15,
 "speed": 0,
 "ts": 1498201016
 },
 "1498201037": {
 "alt": 29,
 "lat": "47.2124",
 "lon": "39.6924",
 "sat": 15,
 "speed": 6,
 "ts": 1498201037
 },
 "1498201097": {
 "alt": 31,
 "lat": "47.2128",
 "lon": "39.6933",
 "sat": 15,
 "speed": 0,
 "ts": 1498201097
 }
 },
 "msg": "OK",
 "vehicle": {
 "agentid": 2914,
 "created_time": 1359797592,
 "current_mileage": 90224,
 "folder": "Sky Electronics",
 "imei": "356307045913463",
 "type": "Cow",
 "typeid": 31,
 "vehiclenumber": "IX35"
 }
}