Ресурсы

Создание элемента в ресурсе

Создадим уведомление в ресурсе через запрос resource/update_notification

http://hst-api.wialon.com/wialon/ajax.html?svc=resource/update_notification&params={
        "n":"! not a group v2","ta":1559163600,"td":0,"tz":134228528,"la":"ru","ma":0,
        "sch": {"f1":0,"f2":0,"t1":0,"t2":0,"m":0,"y":0,"w":0},"ctrl_sch":{"f1":0,"f2":0,"t1":0,"t2":0,"m":0,"y":0,"w":0},
        "un":[814743],"trg":{"t":"trailer","p":{"driver_code_mask":"*","flags":2,"type":2}},
        "act":[{"t":"message","p":{"name":"! not a group v2","url":"","color":"","blink":0}},
        {"t":"exec_cmd","p":{"name":"Новая 
        команда","param":"15156156156156","link":"","cmd_type":"custom_msg","units":"540,634,635,60,8694,83,809"}}],
        "txt":"%UNIT%: в %MSG_TIME% прицеп был откреплен.",
        "fl":1,"mast":0,"mpst":0,"cdt":0,"mmtd":0,"cp":3600,
        "id":0,"itemId":242,"callMode":"create"}&sid=<your_sid>
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2019 Gurtam