node-rocketsms
v0.2.1
Published
Modern RocketSMS SMS-gateway API.
Downloads
14
Readme
node-rocketsms
Modern RocketSMS SMS-gateway API.
Features
- Supports API spec v1.3.0.
- Clear, lightful API layer
- Async/await/Promises
Installation
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();
©