API for getting report data
Example:
https://<address>/api/api.php?cmd=get_report
Required parameters table
Parameter
|
Type
|
Example
|
Description
|
cmd
|
string
|
get_report
|
Command to get report data
|
report_type
|
int
|
1
|
Report type
|
start
|
int
|
1724623200
|
Sample start time (unixtimestamp)
|
stop
|
int
|
1724709600
|
Sample stop time (unixtimestamp)
|
veh_id
|
string
|
1234,5678
|
List of vehicles (agent IDs) separated by comma
|
explode
|
int
|
1
|
Separate report data by (1 - days, 2 - weeks, 3 - do not separate)
|
group
|
int
|
1
|
Grouping report data by (1 - days, 2 - objects, 3 - zones, 4 - drivers, 5 - clients, 6 - groups, 7 - tags)
|
format
|
string
|
json
|
Data report response (json, pdf, xls)
|
tz
|
string
|
Africa/Johannesburg
|
Time zone report (see API https://<address>/api/api.php?cmd=get_time_zones)
|
Additional parameters table
|