ਬੇਨਤੀ ਟੈਪਲੇਟ:
http: // {host} / ts / json_api; jsessionid = <sid>? cmd = messages / get_messages_by_interval & params = {"obj_id": <obj_id>, "start_dt": "<start_dt>", "ਅੰਤ_ ਡੀ ਟੀ": "<end_dt > "," ਗਿਣਤੀ ": <count>," message_type ": <message_type>}
ਬੇਨਤੀ ਮਾਪਦੰਡ:
sid
ਵਿਲੱਖਣ ਸੈਸ਼ਨ ਪਛਾਣਕਾਰ
obj_id
start_dt
end_dt
message_type
ਜਵਾਬ ਨਮੂਨਾ:
{"ਗਿਣਤੀ": <ਗਿਣਤੀ>, "ਸੰਦੇਸ਼": <messages>}
ਜਵਾਬ ਮਾਪਦੰਡ:
ਸੁਨੇਹੇ
ਸੁਨੇਹਾ ਐਰੇ
ਬੇਨਤੀ ਦਾ ਉਦਾਹਰਣ:
http: //gps.agtrack.kz / ts / json_api; jsessionid = 0ABDEF9131EBF68D1418589584CA984D? cmd = ਸੁਨੇਹੇ / get_messages_by_interval & params = {"obj_id": 10524, "ਸ਼ੁਰੂ _ ਡੀ ਟੀ": "01.07.2016 ਟੀ 00: 00: 00", "ਅੰਤ_ ਡੀ ਟੀ": "01.07. 2016T01: 00: 00 "," ਗਿਣਤੀ ": 2," ਸੁਨੇਹਾ_ ਕਿਸਮ ": 1}
ਜਵਾਬ ਦਾ ਜਵਾਬ:
("ਗਿਣਤੀ": 2, "ਸੰਦੇਸ਼": "01.07.2016 ਟੀ 00: 00: 27", "ਲੋਨ": 76.985824, "ਰੁਝਾਨ": 88, "ਸਪੀਡ": 0, "ਸਥਾਨ": " 132, улица Майлина, ਅੱਲਟਿਨ ਕੋਲ, ਅਲਮਾਟੀ, 050039, ਕਜ਼ਾਖਸਤਾਨ "," ਕੋਆਰਡੀਨੇਟਸ_ਟਰਟਰ ":" 43.34096, 76.985824 (10) "," ਸਮੂਦ ਸੈਲਸੀਸ ":" ਡੂਟੀ 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, ext_pwr_volt = 12079, gps_pwr = 1, speed = 0, odom_val = 0 "," obj_id ": 10524," ਸਪੀਡ_ਇਨ_ਕਿਲਫ ": 0," ਸੈਂਸਰ ":" ਡੀਓਟੀ 1 = 40.48 ਐੱਲ, ਡਿਜ਼ਟ ਸੁਝੈਨੀ = ਵਾਈਕਲ, ਸਭ ਤੋਂ ਵੱਡਾ ਖੁਦਾਈ ਪੇਸਿੰਗ = ਵੈਕਲ "," id ":" id ": 1006125," satellite_cnt ": 10," alt ": 682," lat ": 43.34096}, {" dt ":" 01.07.2016 T00: 01: 27 "," ਲੌਨ ": 76.985824," ਰੁਝਾਨ ":", 43.340966, 76.985824 (10) "," ਸੁਮਸ਼ਟੀ ਸੈਸ਼ਨ ":" ਡੌਇਟੀ 1 = "," ਸਧਾਰਣ ": 99," ਸਪੀਡ ":" 132, улица Майлина, ਅਲਟੀਨ ਕੋਲ, ਅਲਮਾਟੀ, 050039, ਕਜ਼ਾਕਿਸਤਾਨ " 40.5 l, Дат "param2 = param0, din1 = 0, din2 = 0, din3 = 0, din4 = 0, gsm_level = 4, move_sensor = 1, a1 = 1174," ਪਰਾਮਰਸ "," ਪਰਾਮਜ਼ "=" ain2 = 14, ain3 = 0, ain4 = 1, ext_pwr_volt = 12081, gps_pwr = 1, speed = 0, odom_val = 0 "," obj_id ": 10524," ਸਪੀਡ_ਇਨ_ਕਿਲਫ ": 0," ਸੈਂਸਰ ":" ДУТ1 = 40.5 l , Датчик зажигания = Выкл, Цифровой датчик внешнего питания = Вкл "," id ": 1006126," satellite_cnt ": 10," alt ": 680," lat ": 43.3409664}]}