Тема: Ho to Get all UnitGroup Names for an Unit?
I am using Wialon Remote API. I would like to get all the Unit Group Names one unit belongs to.
Can anyone please help me on this.
J Prabhu
Вы не вошли. Пожалуйста, войдите или зарегистрируйтесь.
I am using Wialon Remote API. I would like to get all the Unit Group Names one unit belongs to.
Can anyone please help me on this.
prabhu.janakiraman, if You need to get all groups that one unit belongs to You can use such request:
https://hst-api.wialon.com/wialon/ajax.html?svc=core/search_items¶ms={"spec":{"itemsType":"avl_unit_group","propName":"sys_units","propValueMask":"290","sortType":"sys_name","propType":"list"},"force":1,"flags":1,"from":0,"to":0}&sid=<sid>
replace 290 with Your unit id.
But if You need to do this for all Your units - it is better to get all units, all groups and for each unit check if it belongs to each group without new requests.
thanks deal