1.0.2 • Published 3 years ago

iveasms v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Ivea SMS client

This library is created in purpose of working with Ivea SMS Webservice within the Node.js Applications.

Installation

npm install iveasms --save

Usage

const IveaSMS = require('iveasms');
const client = new IveaSMS(username, password);
const options = {
    type: '0', // optional, for flash messaging pass '1' or 'flash',  || should be an array on multi manual method
    number: '+985000XXX', // optional for public numbers || should be an array on multi manual method
    to: '091********' || ['091********', '+9891********', '91********']
}
client.getCredit().then(function(value) {
    console.log(value);
}); // get your panel credit

client.getStatus('message ID').then(function(value) {
    console.log(value);
}); // get message status by message ID

client.sendManual(options, 'this is a test from @HosseinDotLink').then(function(value) {
    console.log(value);
}); //send manual message

client.sendManualMulti(options, ['test 1', 'test 2']).then(function(value) {
    console.log(value);
}); //send manual multi message remember type, number, to and messages' length should be equals

Author

Hossein MohammadiPour

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago