jpush Version: 0.1.5 By @youxiachai

jpush Node.js sdk

JPush Node.js sdk Build Status NPM version

极光推送Node.js 服务端 sdk

Usage

npm install jpush

Example

var JPush = require('jpush');

var jpushClient = JPush.build({appkey: "you app key", masterSecret: "you master secret key"});

// type value 的限制与文档一致
var receiver = {};
receiver.type = 4;
receiver.value = '';

var msg = {};
msg.content =  'Hi! from boardcast';
msg.platform = 'android';

jpushClient.pushSimpleNotification(1, receiver, msg, function (err, body) {
  // JPush server message
  console.log(body);
});

Api Docs

在线API文档: http://blog.gfdsa.net/JPush-Node.js-sdk/

支持本项目

如果你觉得这个项目还不错,就请作者喝杯咖啡吧