Sending SMS via another Vutlan device equipped with a GSM modem
These elements have the class "notifier" and the type "sms gate".
The following queries are used for management:
addhttprequest - create or edit a notification. Extra options are:
k - user session ID;
id - the notification identifier; if there is no identifier, a new notification is created, otherwise the existing one is edited;
name - the name of the notification, the length is not more than 63 characters;
type - type of message, required only when creating a new one, "sms gate";
login - the user's login on the external Vutlan device;
password - the user password on the external Vutlan device;
to - numbers of recipients, as when sending SMS;
message - message text template, the length is not more than 1023 characters;
addr - the IP address of the external Vutlan device.
When creating a new element following fields are mandatory: name, login, password, to, message, and addr. If a new element is successfully created, the response contains the element identifier, and looks like:
<error type="no error" id="607001" /> |
When changing, only modifiable parameters can be specified. Empty parameters delete the previous value.
delhttprequest - delete the notification. Required parameters are:
k - user session ID;
id - notification ID;
getelement - read the element. Required parameters are:
k - user session ID;
id - notification ID;
The answer contains information about the element:
|
The status field specifies the server's response after the last transaction or an error message.
testmessage - send a test notification, without creating an item. Required parameters:
k - user session ID;
type - type of message, required only when creating a new one, "sms gate";
login - user login on the external Vutlan device;
password - the user password on the external Vutlan device;
to - numbers of recipients, as when sending SMS;
message - message text template, the length is not more than 1023 characters;
addr - the IP address of the external Vutlan device