2office-sms
send sms use 2office service
Last updated 3 years ago by gaara .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install 2office-sms 
SYNC missed versions from official npm registry.

Install

npm i 2office-sms --save

Usage

const Office2 = require('../')

const office2 = new Office2({
  account: 'your_2office_account',
  password: 'your_2office_password',
  servivalKey: 'your_2office_key'
})

office2.sendSms('18902xxxxxx', 'message content', 'your_channel', new Date().getTime(), 1, function (err, result) {
  return done(err)
})

Api

  • sendSms send normal sms(text message)
  • sendVoiceSms send voice sms(voice call)

Test

modify test/fixture.json, and run mocha

Current Tags

  • 0.3.0                                ...           latest (3 years ago)

4 Versions

  • 0.3.0                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 5
Last Month 21
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |