2office-sms 中文文档教程
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
修改test/fixture.json
,运行mocha
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
更多
你可能也喜欢
- 3d-signup-form 中文文档教程
- @00a/util.common 中文文档教程
- @21epub/xapi-ts-wrapper 中文文档教程
- @4geit/rct-chatbox-grid-component 中文文档教程
- @abcum/ember-strings 中文文档教程
- @abhishek09091/abhishek0909-test 中文文档教程
- @ability-ocean/enums 中文文档教程
- @abletech/rc-slider 中文文档教程
- @accodeing/gatsby-theme-switsbake 中文文档教程
- @accursoft/jquery-osk 中文文档教程