Iarratas ar theimpléad:
http: // {host} / ts / json_api; jsessionid = <sid>? cmd = messages / get_messages_by_interval & params = {"obj_id": <obj_id>, "start_dt": "<begin_dt>", "end_dt": "<end_dt > "," comhaireamh ": <count>," message_type ": <message_type>}
Iarr paraiméadair:
sid
aitheantóir seisiúin uathúil
obj_id
start_dt
end_dt
message_type
Teimpléad freagartha:
{"comhaireamh": <count>, "teachtaireachtaí": <messages>}
Paraiméadair fhreagartha:
teachtaireachtaí
eagar teachtaireachta
Iarr sampla:
http: //gps.agtrack.kz / ts / json_api; jsessionid = 0ABDEF9131EBF68D1418589584CA984D? cmd = messages / get_messages_by_interval & params = {"obj_id": 10524, "start_dt": "01.07.2016T00: 00: 00", "end_dt": "01.07. 2016T01: 00: 00 "," comhaireamh ": 2," message_type ": 1}
Sampla freagartha:
"" comhaireamh ": 2," teachtaireachtaí ": [{" dt ":" 01.07.2016T00: 00: 27 "," lon ": 76.985824," trend ": 88," speed ": 0," location ":" 132, улица Майлина, Altyn Kol, Almaty, 050039, An Chasacstáin "," coordinates_str ":" 43.34096, 76.985824 (10) "," smooth_sensors ":" ДУТ1 = 40.48 l, зажигания = Выкл, Цифровой датчик внешнего питания = Вкл " , "params": "param0 = param0, din1 = 0, din2 = 0, din3 = 0, din4 = 0, gsm_level = 4, move_sensor = 1, ain1 = 1175, ain2 = 7, ain3 = 4, ain4 = 3, "braiteoirí": 0, "braiteoirí": "". "," id ": 1006125," satailíte ": 10," alt ": 682," lat ": 43.34096}, {" dt ":" 01.07.2016T00: 01: 27 "," lon ": 76.985824," trend ": 99," luas ": 0," suíomh ":" 132, улица Майлина, Altyn Kol, Almaty, 050039, An Chasacstáin "," coordinates_str ":" 43.340966, 76.985824 (10) "," smooth_sensors ":" ДУТ1 = 40.5 l,. ик зажигания = Выкл, Цифровой датчик внешнего питания = Вкл "," param0 = param0, din1 = 0, din2 = 0, din3 = 0, din4 = 0, gsm_level = 4, move_sensor = 1, ain1 = 1174, ain2 = 14, ain3 = 0, ain4 = 1, ext_pwr_volt = 12081, gps_pwr = 1, luas = 0, odom_val = 0 "," obj_id ": 10524," speed_in_kph ": 0," braiteoirí ":" ДУТ1 = 40.5 l , Датчик зажигания = Выкл, Цифровой датчик внешнего питания = Вкл "," id ": 1006126," satailíte ": 10," alt ": 680," lat ": 43.3409664}]}