Socket
Socket
Sign inDemoInstall

cm-messaging-node

Package Overview
Dependencies
48
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cm-messaging-node

Package to make it very easy to send text messages with CM.com


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

[1.1.0] - 2018-07-22

  • Support for multiple recipients.

Readme

Source

cm-messaging-node: A helper library to send text messages.

NPM

Build Status Codacy Badge codecov

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

Usage

Node.JS

First, run npm install cm-messaging-node. Then, in your source file:

const messagingApi = require("cm-messaging-node");

// Get your product token at CM.com.
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);
});

or send multiple with SendTextMessages:

const result = myMessageApi.SendTextMessages(["00316012345678","003160000000"], "TestSender", "Hello world?!");

License

cm-messaging-node is under the MIT license. See LICENSE file.

Keywords

FAQs

Last updated on 22 Jul 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc