Modèle de demande :
http: // {hôte} / ts / json_api; jsessionid = <sid> ? cmd = rapports / get_obj_summary_by_interval & params = {"obj_id": <obj_id>, "begin_dt": "<begin_dt>", "end_dt": "<end_dt > "," lang ":" <lang> "}
Paramètres de la requête :
sid
identifiant de session unique
obj_id
begin_dt
fin_dt
Modèle de réponse de demande :
{"count": <count>, "obj_summary": <obj_summary>}
Paramètres de réponse de requête :
obj_summary
tableau de chaînes
Description des champs de réponse à la demande :
nom_objet
kilométrage
kilométrage_par_voyage
Kilométrage (en voyage), km
avg_speed_in_kph
max_speed_in_kph
total_time_in_trips_str
total_time_in_parkings_str
motohours_str
fléchette_dépensée
dut_spent
passé_par_norme
passé_par_norm_par_voyage
dépensé_par_calc
dart_moy
dut_moy
dut_begin_level
dut_end_level
refuel_cnt
defuel_cnt
fait le plein
dernier_message_dt
last_message_coordinates_str
last_message_sensors
last_message_move_state_tooltip
motohour_counter_val
mileage_counter_val
Exemple de requête :
http://justrac.com/ts/json_api; jsessionid = 0ABDEF9131EBF68D1418589584CA984D? cmd = reports / get_obj_summary_by_interval & params = {"obj_id": 10305, "begin_dt": "27.08.2021T00: 00: 00d 2021T23: 59: 59 "," lang ":" en "}
Un exemple de réponse à une demande :
{"count": 1, "obj_summary": [{"refueled": 0, "dut_begin_level": 0, "total_time_in_trips": 0, "last_message_sensors": "", "obj_name": "Mercedes-Benz 140", " mileage_by_trip ": 0," max_speed_in_kph ": 0," total_time_in_parkings_str ":" 0sec. "," dut_end_level ": 0,"used_by_norm_by_trip ": 0," refuel_cnt ": 0," total_time_grin_trisepxt. : "", "total_time_in_park 0, "spent_by_calc": 0, "last_message_move_state_tooltip": "Dernier état : Stands pour 2h., 46min., 29sec.", "dart_avg": 0, "last_message_dt": "08/26/2021T16 : 00 : 04 ", " kilométrage " : 0," motohours " : 0," motohour_counter_val ":" 0 h. "," Obj_id ": 10305,"used_by_norm ": 0," avg_speed_in_kph ": 0," mileage_counter_val ": "0 km", "defueled": 0, "dut_spent": 0, "dart_spent": 0, "dut_avg" : 0, "last_message_coordinates_str": "43.360488, 77.016415 (16)", "motohours_str": "0sec." , "defuel_cnt": 0, "is_total_row": false}]}