@cmdotcom/text-sdk1.1.0 • Public • Published
@cmdotcom/text-sdk: 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 limited in features compared to the CM gateway, but if you want to get all the functionalities, go to: CM.com API Docs
npm install @cmdotcom/text-sdk. Then, in your source file:
const messagingApi = ;// Get your product token at CM.com.const yourProductToken = "";const myMessageApi = yourProductToken;const result = myMessageApi;result;
or send multiple
const result = myMessageApi;
send rich messages using the message builder
const richMessage =media:mediaName: "cm.com"mediaUri: ""text: "Our logo!";const suggestion =action: "openUrl"label: "Click me"url: "";const response = client;response;
@cmdotcom/text-sdk is under the MIT license. See LICENSE file.