clickatex

1.0.0 • Public • Published

Clickatex

Unofficial Clickatell API for delivering SMS messages from node.js applications

Intallation

npm install --save clickatex

Usage

var sms = new Client({
    apiId: '12341234',
    user: 'yourUserName',
    password: 'yourPass'
});
 
sms.send({
    to: '556112341234',    // Country code + area code + phone number
    text: 'YOUR MESSAGE'   // Messages larger then 160 characters will be automatically trimmed
}, function(err, ticket) {
    if(err) {
        throw err;
    }
 
    console.log(JSON.stringify(ticket, null, 4));
 
    /*
        {
            "id": "99bfc53c7fcf98e1b402f699e5c5381a",
            "messageTrimmed": true
        }
    */
});

Readme

Keywords

Package Sidebar

Install

npm i clickatex

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • gammasoft