Ali Cloud sms api for Node.js
MIT License
Ali Cloud sms api for Node.js
npm install @sqrtthree/sms
import SmsService from '@sqrtthree/sms'
const sms = new SmsService('id', 'key', 'sign name', {
debug: true,
mock: true,
})
sms.sendSms(templateCode: string, phoneNumbers: string | string[], templateParams?: Record<string, string | number>, options?: Record<string, string>)
sms.sendBatchSms(templateCode: string, phoneNumbers: string[], templateParams?: Record<string, string | number>[], options?: Record<string, string>)
See help.aliyun.com/document_detail/102715.html to get more details.
sqrtthree.com · GitHub @sqrthree · Twitter @sqrtthree