# cm-messaging-node

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

Latest version **1.1.0** (published 2018-07-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cm-messaging-node
pnpm add cm-messaging-node
yarn add cm-messaging-node
bun add cm-messaging-node
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2018-07-22 |
| First published | 2018-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 46.6 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Eric Smekens |
| Maintainers | smekkie |
| Keywords | cm, cm.com, sms, messaging, text, rcs |

## Links

- npm: https://www.npmjs.com/package/cm-messaging-node
- Repository: https://github.com/CMTelecom/cm-messaging-node
- Homepage: https://github.com/CMTelecom/cm-messaging-node#readme
- Issues: https://github.com/CMTelecom/cm-messaging-node/issues
- npm.io page: https://npm.io/package/cm-messaging-node

## Dependencies (3)

- [http](https://npm.io/package/http.md) ~0.0.0
- [request](https://npm.io/package/request.md) ~2.87.0
- [bluebird](https://npm.io/package/bluebird.md) ~3.5.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2018-07-22
- 1.0.1 — 2018-07-12
- 1.0.0 — 2018-06-05
- 0.0.3 — 2018-05-28
- 0.0.2 — 2018-05-08
- 0.0.1 — 2018-05-08

## README

## cm-messaging-node: A helper library to send text messages.

[![NPM](https://nodei.co/npm/cm-messaging-node.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/cm-messaging-node/)

[![Build Status](https://travis-ci.org/CMTelecom/cm-messaging-node.svg?branch=master)](https://travis-ci.org/CMTelecom/cm-messaging-node)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/d51474d6130b4db08ae8a8c57dace8ea)](https://www.codacy.com/app/CMTelecom/cm-messaging-node?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=CMTelecom/cm-messaging-node&amp;utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/CMTelecom/cm-messaging-node/branch/master/graph/badge.svg)](https://codecov.io/gh/CMTelecom/cm-messaging-node)

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](https://docs.cmtelecom.com/bulk-sms/v1.0)

### Usage
#### Node.JS
First, run `npm install cm-messaging-node`. Then, in your source file:
```javascript
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:
```javascript
const result = myMessageApi.SendTextMessages(["00316012345678","003160000000"], "TestSender", "Hello world?!");
```

### License
cm-messaging-node is under the MIT license. See LICENSE file.

---
_Source: https://npm.io/package/cm-messaging-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
