RocketSMS sms-gateway API.
This module is installed via npm:
$ npm install node-rocketsms-api
var RocketSMS = require('node-rocketsms-api');
var sms = new RocketSMS({username: '999999999', password: 'XXXXXXXX'});
sms.send('375999999999', 'Привет, мир!', true)
.then(function(res) {
...
})
.catch(function(err) {
...
};
sms.status(34305153)
.then(function(res) {
...
})
.catch(function(err) {
...
})
sms.balance()
.then(function(res) {
...
})
.catch(function(err) {
...
})
sms.senders()
.then(function(res) {
...
})
.catch(function(err) {
...
})
sms.addSender('99999999999')
.then(function(res) {
...
})
.catch(function(err) {
...
})
sms.templates()
.then(function(res) {
...
})
.catch(function(err) {
...
})
3-clause BSD © Egor Kuryanovich