Client library for Clickatell SMS gateway.
npm install clickatell
var click = require('clickatell');
var sender = click.Clickatell({user: 'my@email.com', api_id: 1234, password: 'password'});
sender.send('0700192919', 'Hello, World!', function(result) {
console.log(result);
});
After adding your sender ID and it gets approved Clickatell Central > Manage Sender IDs, use the from option like this:
var click = require('clickatell');
var sender = click.Clickatell({user: 'my@email.com', api_id: 1234, password: 'password', from: 'SENDER_ID'});
sender.send('0700192919', 'Hello, World!', function(result) {
console.log(result);
});