Руководство пользователя
Версия 7.6
×

Состояние всех машин акаунта

 
Пример:
https://<address>/backend/api.php?cmd=vehicles
 
Параметры:
cmd : vehicles
accountid : ACOUNT_ID
Ответ :
Массив машин.
{
 "data": [
 {
 "active": 1,
 "agentid": 2914,
 "configuration": "Teltonika FM1100",
 "current_mileage": 69332,
 "dir": 0,
 "driver_name": " SSS",
 "driver_phone": " ",
 "folder": "ЮФО",
 "lat": "47.200989",
 "lon": "39.634436",
 "model": "HYUNDAI IX35",
 "msisdn": "79818775160",
 "on": 1,
 "partner_price": "0.00",
 "price": "0.00",
 "sats": 7,
 "speed": 0,
 "ts": "1457709039",
 "type": "Static",
 "uniqid": "356307045913463",
 "vehiclenumber": "IX35"
 },
 {
 "active": 1,
 "agentid": 8026,
 "configuration": "Teltonika FM4200",
 "current_mileage": 17441,
 "dir": 0,
 "driver_name": " ",
 "driver_phone": " ",
 "folder": "ЮФО",
 "lat": "47.318118",
 "lon": "39.995648",
 "model": "",
 "msisdn": "79110181596",
 "on": 1,
 "partner_price": "100.00",
 "price": "350.00",
 "sats": 9,
 "speed": 0,
 "ts": "1457726726",
 "type": "Car",
 "uniqid": "354330031297057",
 "vehiclenumber": "nex"
 }
 ]
}
 
Пример
http://admp.incomtek.kg/backend/api.php?cmd=vehicles&acсountid=1097