quanmsms
v1.0.2
Published
Quanmwl SMS SDK for Nodejs
Downloads
4
Readme
quanmsms
简体中文 | English
Sending SMS in Nodejs
- api version:V1
- First Development Document:https://quanmwl.yuque.com/lx4ve0/vcsmy6/gwsgnw
- Instructions for use: The interface provides some public templates for you to test (such as templates with ID 0). After the test is completed, you should apply for your own SMS template to use
Install
- Introduce as needed in the project
npm i quanmsms -s
How to use
const smsSDK = require('quanmsms')
const smsApi = new smsSDK('your openID', {sms: {apiKey: 'your apiKey'}})
let param = {
tel: 1******4,
model_id:"0",
model_args:{
code: 22993
}
}
smsApi.sendSMS(param).then(
response => {
console.log(response)
// Your business code
}
)