0.2.1 • Published 2 years ago
node-rocketsms v0.2.1
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-rocketsmsExample 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();©