0.2.1 • Published 4 months ago

node-rocketsms v0.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 months ago

node-rocketsms

Modern RocketSMS SMS-gateway API.

Features

  • Supports API spec v1.3.0.
  • Clear, lightful API layer
  • Async/await/Promises

Installation

Install the latest version via npm:

npm install node-rocketsms

Example Usage

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

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

Create message

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

Message status

const result = await sms.status(123456789);

Account balance

const result = await sms.balance();

Alfa-numbers list

const result = await sms.senders();

Add alfa-number

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

Templates list

const result = await sms.templates();

©

0.2.1

4 months ago

0.2.0

6 months ago

0.1.2

2 years ago

0.1.1

3 years ago

0.1.0

4 years ago