clickatell-rest-api

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i clickatell-rest-api

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • muhammadfaizan