-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend-sms.html
More file actions
60 lines (58 loc) · 2.07 KB
/
send-sms.html
File metadata and controls
60 lines (58 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<script type="text/javascript">
RED.nodes.registerType('send-sms',{
category: 'TC Router',
color: '#a6bbcf',
defaults: {
router: {type:"tc-router",required: true}
},
icon: "font-awesome/fa-comment",
inputs:1,
outputs:1,
label: function() {
return this.name||"send-sms";
}
});
</script>
<script type="text/x-red" data-template-name="send-sms">
<div class="form-row">
<label for="node-input-router"><i class="icon-globe"></i> TC Router</label>
<input type="text" id="node-input-router"></input>
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/x-red" data-help-name="send-sms">
<p>Sends SMS messages via the TC Router socket server xml interface</p>
<h3>Input</h3>
<dl class="message-properties">
<dt>contacts
<span class="property-type">string | array[String]</span>
</dt>
<dd>The target contacts to send the message to</dd>
<dt>content
<span class="property-type">string</span>
</dt>
<dd>Message to be sent to the phone numbers listed in the contacts property</dd>
</dl>
<h3>Output</h3>
<dl class="message-properties">
<dt>success
<span class="property-type">bool</span>
</dt>
<dd>Was the message sent to the user</dd>
<dt class="optional">length
<span class="property-type">string</span>
</dt>
<dd>Length of message sent</dd>
<dt class="optional">message
<span class="property-type">string</span>
</dt>
<dd>Copy of the message sent to the contact</dd>
<h3>References</h3>
<ul>
<li><a href="https://zmink.gitbook.io/node-tcrouter/">Setup Guide</a> - setup guide</li>
<li><a href="https://github.com/PhoenixContactUSA/node-red-contrib-tcrouter">GitHub</a>Github repo</li>
</ul>
</script>