Clickatell NodeJS Library
This library allows easy access to connecting the Clickatell's different messenging API's.
Installation
This library is managed by the Node Package Manager
npm install clickatell-node
Usage
All calls are asynchronous and the parameters follows the nodeJS convention of specifying any errors as the first parameter and the response as the second.
var clickatell = ;// var clickatell = require('clickatell-node').rest(token); clickatell;
sendMessage parameters that are not supported
The sendMessage
calls supports a third parameter called extra
. This parameter can be used to specify any values in the Clickatell documentation that the library does not support as part of the public interface.
Supported API calls
The available calls should be defined as the following. Whenever you write a new adapter (API type) you should also try to stick to this interface.
; ; ; ; ; ;
The callback uses the standard way of handling response and will be invoked with the following parameters:
;
Testing
To run the library test suite just execute npm test
from the library root. Please make sure all tests are passing before pushing back any changes.