@wmakeev/module-unisender
v1.1.0
Published
Unisender module
Downloads
2
Readme
module-unisender
Unisender module.
Table of Contents
Installation
$ npm i @wmakeev/module-unisender
Usage
let UnisenderModule = require('@wmakeev/module-unisender')
let instance = UnisenderModule(someSandbox)
instance.init({ apiKey: 'you_api_key' })
let result = await instance.sendSms({
phone: '79226090705',
sender: 'TEST',
text: 'SMS text'
})
assert.deepEqual(result, {
currency: 'USD',
phone: '79226090705',
price: 0.0289,
sms_id: 14425539
})
API
instance.init(): void
instance.destroy(): void
instance.callMethod(method: string, options: object): Promise
instance.sendSms(options: object): Promise
Alias to sendSms
method call