1.0.2 • Published 4 years ago

@speedup/notification-sms-smsir v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

SpeedUP SMS notification

SMS notification using SMS.ir provider.

NPM version NPM downloads

Installation

# NPM
npm i @speedup/notification-sms-smsir --save

# Yarn
yarn install @speedup/notification-sms-smsir

Usage

const SMSSender = require('@speedup/notification-sms-smsir');

const sms = new SMSSender({
    apiKey: 'your-api-key',
    secret: 'api-key-secret'
});

await sms.send('09123456780', 'Thanks for choosing us!', {
    lineNumber: '30001234',
    sendDateTime: '', // means immediately
    canContinueInCaseOfError: true
});

And you're good to go!

License

MIT