Modèle de demande:
http: // {hôte} / ts / json_api; jsessionid = <sid>? cmd = messages / get_messages_by_interval & params = {"obj_id": <obj_id>, "begin_dt": "<begin_dt>", "end_dt": "<end_dt" > "," nombre ": <nombre>," type de message ": <type de message>}
Paramètres de demande:
sid
identifiant de session unique
obj_id
begin_dt
end_dt
type de message
Modèle de réponse:
{"nombre": <nombre>, "messages": <messages>}
Paramètres de réponse:
messages
tableau de messages
Exemple de demande:
http: //uvivion.com / ts / json_api; jsessionid = 0ABDEF9131EBF68D1418589584CA984D? cmd = messages / get_messages_by_interval & params = {"obj_id": 10524, "begin_dt" "" 01.07.2016T00 00:, ";"; 2016T01: 00: 00 "," nombre ": 2," type de message ": 1}
Exemple de réponse:
{"nombre": 2, "messages": [{"dt": "01.07.2016T00: 00: 27", "lon": 76.985824, "tendance": 88, "vitesse": 0, "emplacement": " 132, улица Майлина, Altyn Kol, Al, 050039, Kazakhstan "," coordinate ":" 4334096, 76.985824 (10) "," Réduire la page " , "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, _ t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t t en t t t t t t t t en t t t t t en t t t t t t t t t t t t t t t en enregistrez-vous "," id ": 1006125," satellite_cnt ": 10," alt ": 682," lat ": 43.34096}, {" dt ":" 01.07.2016T00: 01: 27 "," lon ": 76.985824," tendance ": 99," vitesse ": 0," emplacement ":" 132, улица Майлина, Altyn Kol, Almaty, 050039, Kazakhstan "," Coordinates_str ":" 43.340966, 76.985824 (10) "," smooth_sensors ":" smooth_sensors ":" smooth_sensors ":" lisse " 40,5 l, Дат ик зажигания = Выкл, ифровой датчик внешнего питания = Вкл "," params ":" param0 = param0, din1 = 0, din2 = 0, din3 = 0, din3 = 0, din4 = 0, din4 = 0, nichon = 0, nichon = 0, nichon = 0, nichon = 0, nichon = 0 ain2 = 14, ain3 = 0, ain4 = 1, ext_pwr_volt = 12081, gps_pwr = 1, vitesse = 0, odom_val = 0 "," obj_id ": 10524," speed_in_kph ": 0," capteurs ":" ДУТ1 = 40,5 l , Датчик зажигания = Выкл, Цифровой датчик внешнего питания = Вкл "," id ": 1006126," satellite_cnt ": 10," alt ": 3.