Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:d-sdk:9_notifications:2_create_notification [2018/04/27 01:58] (current)
support@geliossoft.ru created
Line 1: Line 1:
 +====== Create Notification ======
 +The request is intended to create a notification.
  
 +=== Request Example ===
 +<code php>&​svc=create_notification&​params={
 +    "​type":​integer,​
 +    "​id_units":​[integer,​integer,​...],​
 +    "​id_geozone":​inetegr,​
 +    "​type_notification":​ushort,​
 +    "​text_notification":​string
 +}</​code>​
 +
 +=== Parameters ===
 +^ Parameter ​  ^ Description ​  ^
 +| type | Notification Type |
 +| id_units | Array of Unique Unit IDs |
 +| id_geozone | Unique Notification ID |
 +| type_notification | NOtification Type:\\ <code php>​e-mail message: 1
 +SMS message: 2
 +online message: 3</​code> ​ |
 +| text_notification | Notification Text |
 +
 +=== Additional Information ===
 +**IMPORTANT!** Only the creation of notifications on the exit from the geozone is available now.
 +
 +=== Server Response ===
 +<code php>{
 +    "​result":"​6009"​
 +}</​code>​