Skip to content

wmakeev/module-unisender

Repository files navigation

module-unisender

module specification npm Travis Coveralls bitHound Dependencies bitHound DevDependencies bitHound JavaScript Style Guide

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

License

ISC © Vitaliy V. Makeev

About

Unisender API module

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published