The following example demonstrates the use of the Text service instead of the
Broadcast service for sending batches of texts.
Note that you cannot send a message from a number to itself. Although the operation
may succeed, the text will not be delivered.
var callfire = require('callfire');
(function() {
'use strict';
var text = new callfire("<api-username>", "<api-password>", "Text");
text.SendText({
UseDefaultBroadcast: 'true',
To: '<phone-number>',
Message: 'This is a test message using CallFire'
}, function(response) {
var result = text.response(response);
console.log(result);
});
}) ();