mirror of
https://github.com/node-red/node-red-nodes.git
synced 2025-03-01 10:37:43 +00:00
Tidy up / hide non-supported ways of doing twill crews
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
<option value="call">Call</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<label for="node-input-number">
|
||||
<i class="fa fa-envelope-o" id="node-input-number-icon-sms"></i>
|
||||
@@ -44,11 +43,6 @@
|
||||
Alternatively, if the number is left blank, it can be set using <code>msg.topic</code>.
|
||||
If the node is configured to make a call then the TWiML URL must be publically accessible.
|
||||
<p>You must have an account with Twilio to use this node. You can register for one <a href="https://www.twilio.com/">here</a>.</p>
|
||||
<p>You can either set your account details within the node, or provide it globally using either the settings file.</p>
|
||||
<p>To use the settings.js file, add an entry such as:
|
||||
<pre>twilio: { account:'My-ACCOUNT-SID', authtoken:'TWILIO-TOKEN', from:'FROM-NUMBER' }</pre></p>
|
||||
<p>To use the 'twiliokey.js' file in the directory <b>above</b> node-red, use the following format:
|
||||
<pre>module.exports = { account:'My-ACCOUNT-SID', authtoken:'TWILIO-TOKEN',from:'FROM-NUMBER' }</pre></p>
|
||||
</script>
|
||||
|
||||
<script type="text/x-red" data-template-name="twilio-api">
|
||||
@@ -96,9 +90,11 @@
|
||||
RED.nodes.registerType('twilio out',{
|
||||
category: 'mobile-output',
|
||||
defaults: {
|
||||
twilio:{type:"twilio-api",validate:function(v) {
|
||||
return hasGlobal || (v && v!="_ADD_");
|
||||
}},
|
||||
twilio:{
|
||||
type:"twilio-api",validate:function(v) {
|
||||
return hasGlobal || (v && v!="_ADD_");
|
||||
}
|
||||
},
|
||||
twilioType: {value:"sms"},
|
||||
url: {value:""},
|
||||
number: {value:""},
|
||||
|
Reference in New Issue
Block a user