1.0.2 • Published 7 months ago

quanmsms v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

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
    }
)
1.0.2

7 months ago

1.0.1

12 months ago

1.0.0

12 months ago