Aliyun push sdk for node.js, include DirectMail and SMS.
Install
$ npm install ali-push -S
Usage
var push = ; var client = AccessKeyId: '<Your AccessKeyId>' AccessKeySecret: '<Your AccessKeySecret>' AccountName: '<Your AccountName>' // for DirectMail; client;
/** * @param * @param */client;
Params
- SingleSendMail
name | type | required | description |
---|---|---|---|
ToAddress | String | yes | |
Subject | String | yes | |
TextBody | String | yes | |
HtmlBody | String | yes | |
FromAlias | String | no |
Note: choose TextBody
or HtmlBody
- BatchSendMail
name | type | required | description |
---|---|---|---|
TemplateName | String | yes | |
ReceiversName | String | yes | |
TagName | String | no |
- SingleSendSms
name | type | required | description |
---|---|---|---|
SignName | String | yes | |
TemplateCode | String | yes | |
RecNum | String | yes | |
ParamString | String | yes |