jpush

jpush Node.js sdk

npm install jpush
1 downloads in the last day
18 downloads in the last week
34 downloads in the last month

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/

支持本项目

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

Bitdeli Badge

npm loves you