Hello,
In order to get reportResourceId and reportTemplateId, you can use the request you've indicated in your previous topic. Set "flags" parameter value 8193
Thus response contains all resources available for the current user and report templates created there.
e.g. https://hst-api.wialon.com/wialon/ajax.html?svc=core/search_items¶ms={"spec":{"itemsType":"avl_resource", "propName":"sys_name","propValueMask":"*","sortType":"sys_name","propType":"property","or_logic":0},"force":1,"flags":8193,"from":0,"to":0}&sid=
reportObjectId - the same request can be used, but change "itemsType" parameter value to "avl_unit" and "flags" value to 1.
(in case you generate report for a single unit, otherwise the type should be selected accordingly)
reportObjectSecId -- this parameter should be specified only if you want to generate report for sub-item, like driver, geofence etc.
And in this case, "reportObjectId" is resource ID and "reportObjectSecId" - ID of the driver/geofence created in this resource.
ID of the driver and geofence, can be retrieved similar as report template ID, but flag should be different.
Please, pay your attention to the flag values described in the documentation -- https://sdk.wialon.com/wiki/en/sidebar/ … mat/format
These values affect response content and can be merged to get more specific information in one request.
Anton Zinovyev
Technical Care Engineer (L2)
Wialon