clickatell-rest-api
v1.0.1
Published
This module allows to use clickatell rest-a-tell rest api.
Downloads
4
Maintainers
Readme
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.