Notification module/en: различия между версиями

Новая страница: «==How to set up notifications with more complex conditions== The notification module is designed to quickly configure simple notifications. If you need more compl…»
(Новая страница: «== = Pre-setting for sending SMS== Make sure you insert the SIM card and connect the GSM antenna. == = Configure the notification module== #Go to the "Configs - A…»)
(Новая страница: «==How to set up notifications with more complex conditions== The notification module is designed to quickly configure simple notifications. If you need more compl…»)
Строка 54: Строка 54:
</div>
</div>


==Как настроить уведомления с более сложными условиями==
==How to set up notifications with more complex conditions==
Модуль уведомлений предназначен для быстрой настройки простых уведомлений. Если вам нужны более сложные сценарии уведомлений, их можно запрограммировать через [[Движок правил wb-rules | движок правил]]. Чтобы отправить сообщение, из правила нужно вызвать функцию
The notification module is designed to quickly configure simple notifications. If you need more complex notification scripts, they can be programmed via [[Движок правил wb-rules/en | rules engine]]. To send a message, call the function from the rule
<syntaxhighlight lang="ecmascript">
<syntaxhighlight lang="JavaScript">
Notify.sendEmail(to, subject, text); //отправляет почту указанному адресату (to), с указанной темой (subject) и содержимым (text)
Notify.sendEmail(to, subject, text); //sends mail to the specified recipient (to), with the specified subject and content (text)
</syntaxhighlight>
</syntaxhighlight>
или
or
<syntaxhighlight lang="ecmascript">
<syntaxhighlight lang="JavaScript">
Notify.sendSMS(to, text); //отправляет SMS на указанный номер (to) с указанным содержимым (text)
Notify.sendSMS(to, text); //sends SMS to specified number (to) with specified content (text)
</syntaxhighlight>
</syntaxhighlight>
12 063

правки