Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 528 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 528 Bytes

ali-mns-sms

Ali sms via mns service


var mnsConfig = {
    accessKeyId: '**accessKeyId**',
    secretAccessKey: '**secretAccessKey**',
    endpoint: '**endpoint**', // http://********.mns.cn-hangzhou.aliyuncs.com/
};

var aliMnsSms = new AliMnsSms(mnsConfig);

var sendSmsParam = {
    smsParams: {
        verifyCode: '123456' // 短信参数
    },
    templateCode: 'E123456', // 模板ID
    freeSignName: 'TestSMS', // 短信签名
    receiver: '13888888888' // 接受者手机号
};