Skip to content

Aliyun push sdk for node.js, include DirectMail and SMS.

License

Notifications You must be signed in to change notification settings

jovey-zheng/aliyun-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliyun push sdk for node.js, include DirectMail and SMS.

npm version npm download Build Status

Install

$ npm install ali-push -S

Usage

var push = require('ali-push');

var client = new push({
  AccessKeyId: '<Your AccessKeyId>',
  AccessKeySecret: '<Your AccessKeySecret>',
  AccountName: '<Your AccountName>'   // for DirectMail
});

client.SingleSendMail({
  ToAddress: 'test@shanchain.com',
  Subject: 'test',
  TextBody: 'hello world'
}, function(err, res, body) {
  // do something here
  // console.log(err, res, body)
});
/**
 * @param {Object}   args params
 * @param {Function} cb   callback
 */
client.MEHOTD(args, callback);

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

License

MIT

About

Aliyun push sdk for node.js, include DirectMail and SMS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published