Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wcoder/node-rocketsms

Modern RocketSMS SMS-gateway API.
https://github.com/wcoder/node-rocketsms

javascript nodejs sms sms-api sms-gateway sms-messages sms-sdk sms-verification

Last synced: about 1 month ago
JSON representation

Modern RocketSMS SMS-gateway API.

Awesome Lists containing this project

README

        

# node-rocketsms

Modern RocketSMS SMS-gateway API.

## Features

- Supports [API spec](https://rocketsms.by/storage/rocketsms_api.pdf) v1.3.0.
- Clear, lightful API layer
- Async/await/Promises

## Installation

Install the [![latest version](https://img.shields.io/npm/v/node-rocketsms.svg?label=latest%20version)](https://www.npmjs.com/package/node-rocketsms) via npm:

```sh
npm install node-rocketsms
```

## Example Usage

```js
const RocketSMS = require('node-rocketsms');

const sms = new RocketSMS('username', 'password');
```

### Create message

``` js
const result = await sms.send('375999999999', 'New message text!');
```

### Message status

```js
const result = await sms.status(123456789);
```

### Account balance

```js
const result = await sms.balance();
```

### Alfa-numbers list

```js
const result = await sms.senders();
```

### Add alfa-number

```js
const result = await sms.addSender('SenderName');
```

### Templates list

```js
const result = await sms.templates();
```

---

©