profi-sms
v1.0.1
Published
profi-sms node.js client for easier use
Downloads
11
Maintainers
Readme
profi-sms
- node.js client for profisms.cz
- normalizing phone number strings
- handling authentication
- documentation http://document.profisms.cz/
Usage
// commonJS
const ProfiSms = require('profi-sms').default;
// ES6 modules
import ProfiSms from 'profi-sms';
const sms = new ProfiSms({
login: 'myLogin',
password: 'myPassword',
source: 'mySourceAccount',
});
// ...
try {
await sms.send({
tels: ['555444333', '555 444 333'],
text: 'test',
});
} catch (err) {
console.error(err);
}