ali-sms
Nodejs SDK for Aliyun SMS service
Install
npm install ali-sms
Usage
const sms = ;const accessKeyID = processenvALI_SMS_ACCESSKEYID;const accessKeySecret = processenvALI_SMS_ACCESSKEYSECRET; const config = accessKeyID : accessKeyID accessKeySecret : accessKeySecret paramString : code: '123456' recNum : '1891234567' signName : 'alibaba' templateCode : 'SMS_28100008';;
Config
param | type | description |
---|---|---|
accessKeyID | string | access key id, get from aliyun |
accessKeySecret | string | access key secret, get from aliyun |
paramString | object | ali sms param which you have defined on aliyun sms dashboard |
recNum | array | phone numbers of users |
signName | string | ali sms param, get from aliyun sms dashboard |
templateCode | string | ali sms param, get from aliyun sms dashboard |
Debug
DEBUG=sms npm start