1.0.1 • Published 8 years ago

clickatell-rest-api v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Clickatell Rest Api

This is an unofficial Node.js REST API for the Clickatell, which wraps their REST API.

Installation

$ npm install --save clickatell-rest-api

Basic Usage

// require the module
const Clickatell = require('clickatell-rest-api');

// create a new clinet
const client = new Clickatell.client([YOUR AUTHORIZATION TOKEN HERE]);

// send a text message
client.sendMessage('+123456789', "Hey this is a message from my app")
.then(response => {
   // Do your task here
   console.log(response);
   return response
})
.catch(error => {
    // handle error here
    throw error
});

Note

Any contrubution would be appreciated. Also raise issue or request a feature if needed.