Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 735 Bytes

File metadata and controls

29 lines (22 loc) · 735 Bytes

Texts

Send a Text Individually

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);
    });
}) ();