
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
clickatell-node
Advanced tools
This library allows easy access to connecting the Clickatell's different messenging API's.
This library is managed by the Node Package Manager
npm install clickatell-node
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 = require('clickatell-node').http(user, pass, api_id);
// var clickatell = require('clickatell-node').rest(token);
clickatell.sendMessage(["00000000000"], "My Message", {}, function (err, messages) {
for (var key in messages) {
var message = messages[key];
console.log(message);
// Message response format:
// message.id (false if error)
// message.destination
// message.error (false if no error)
// message.code (false if no error)
}
});
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.
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.
sendMessage(to, message, extra, callback);
getBalance(callback);
stopMessage(apiMsgId, callback);
queryMessage(apiMsgId, callback);
routeCoverage(msisdn, callback);
getMessageCharge(apiMsgId, callback);
The callback uses the standard way of handling response and will be invoked with the following parameters:
sendMessage(["0000000000"], "My Message", {}, function (err, messages) {
});
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.
FAQs
Library for Clickatell SMS gateway APIs
The npm package clickatell-node receives a total of 35 weekly downloads. As such, clickatell-node popularity was classified as not popular.
We found that clickatell-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.