cm-messaging-node: A helper library to send text messages.
Want to send text-messages in your Node.js application? Then you are at the right place.
The package is currently in beta, but if you want to get all the functionalities, go to: CM.com API Docs
Usage
Node.JS
First, run npm install cm-messaging-node
. Then, in your source file:
const messagingApi = require("cm-messaging-node");
const yourProductToken = "";
const myMessageApi = new messagingApi.MessageApiClient(yourProductToken);
const result = myMessageApi.SendTextMessage("00316012345678", "TestSender", "Hello world?!");
result.then((result) => {
console.log(result);
}).catch((error) => {
console.log(error);
});
License
cm-messaging-node is under the MIT license. See LICENSE file.