This was very helpful, thank you very much.
Can I ask you another question? I did the items_search as you said and got the parameters. However, when I execute the report, I still get the 'wrong params' error code.
I believe my reportObjectId is not correct, and I am not sure what to put in there.
My response with item_search was:
{'searchSpec': {'itemsType': 'avl_resource', 'propName': 'reporttemplates', 'propValueMask': 'Cargas', 'sortType': 'reporttemplates', 'propType': 'propitemname', 'or_logic': '0'}, 'dataFlags': 8193, 'totalItemsCount': 1, 'indexFrom': 0, 'indexTo': 0, 'items': [{'nm': 'Reportes_Sentinel1', 'cls': 3, 'id': 187, 'mu': 0, 'rep': {'1': {'id': 1, 'n': 'Cargas', 'ct': 'avl_unit_group', 'c': 59921}, '2': {'id': 2, 'n': 'Consumo Flota', 'ct': 'avl_unit_group', 'c': 60324}, '3': {'id': 3, 'n': 'Control de Peajes', 'ct': 'avl_unit_group', 'c': 31006}, '4': {'id': 4, 'n': 'Descargas de combustible', 'ct': 'avl_unit_group', 'c': 19833}, '5': {'id': 5, 'n': 'Errores de Conducción', 'ct': 'avl_unit_group', 'c': 56306}, '6': {'id': 6, 'n': 'Excesos de Velocidad', 'ct': 'avl_unit', 'c': 2113}, '7': {'id': 7, 'n': 'Extended fuel report', 'ct': 'avl_unit', 'c': 4479}, '8': {'id': 8, 'n': 'Horas Motor', 'ct': 'avl_unit_group', 'c': 26206}, '9': {'id': 9, 'n': 'Infracciones y Multas', 'ct': 'avl_unit_group', 'c': 1276}, '10': {'id': 10, 'n': 'Contador de Viajes', 'ct': 'avl_unit', 'c': 31834}, '11': {'id': 11, 'n': 'Reporte de Paradas', 'ct': 'avl_unit_group', 'c': 7567}}, 'uacl': 17627904754211}]}
Then, in order to execute the report, this is what I do:
http://host/wialon/ajax.html?svc=report/exec_report&
params={
"reportResourceId":187,
"reportTemplateId":1,
"reportObjectId":59921,
"reportObjectSecId":0,
"interval":{
"from":1590969600,
"to":1592832842,
"flags":1
},
"tzOffset":-14400,
"lang":"en"
}&ssid= my_eid
Thank you very much in advance.