KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
JPush-Node.js-sdk
★ 12
Open GitHub ↗
JPush-Node.js-sdk v2 文档:
Download README (.md)
Explore Similar Repositories
LiveWallpaper3D-jPCT-AE
:
Android LiveWallpaper 3D project (using jPCT-ae, jbrush-ae, GLWallpaperService)
ChromeCast-Kinect
:
Controlling a ChromeCast device with a Microsoft Kinect sensor
couchbase-lite-java-listener
:
Embedded web server to expose Couchbase Lite REST API on an http socket
DoctorJS
:
线上JS报错监控系统。
THREE.GUI
:
Simple 3D GUI for threejs.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
JPush-Node.js-sdk
?
Download (.md)
JPush Node.js sdk [](https://travis-ci.org/youxiachai/JPush-Node.js-sdk) [](http://badge.fury.io/js/jpush) ====================== 极光推送Node.js 服务端 sdk ## v2 or v3 极光推送官网更新了v3 接口 [http://docs.jpush.cn/display/dev/Push-API-v3](http://docs.jpush.cn/display/dev/Push-API-v3) 所以,本sdk 库也同步更新...对于v2 接口用0.1.x 版本 , v3 用0.3.x版本. ## Usage v2 ``` npm install jpush@0.1 ``` v3 ``` npm install jpush ``` ## Example ### Notification ``` js var JPush = require('jpush'); var jpushClient = JPush.build({appkey: "you app key", masterSecret: "you master secret key"}); var body = 'Hi jpush nodejs sdk!'; jpushClient.pushNotification(body, function (err, result){ console.log(result); }) ``` ### Message ``` js var JPush = require('jpush'); var jpushClient = JPush.build({appkey: "you app key", masterSecret: "you master secret key"}); var body = 'Hi jpush nodejs sdk!'; jpushClient.pushMessage(body, function (err, result) { console.log(result); }) ``` 更多例子去看test目录下的单元测试 ## Api Docs ### JPush Api v2 [jpush v2 在线API文档](http://blog.gfdsa.net/JPush-Node.js-sdk/api.html):http://blog.gfdsa.net/JPush-Node.js-sdk/ ### JPush Api v3 [jpush v3 在线API文档](http://blog.gfdsa.net/JPush-Node.js-sdk/v3/jpush.html):http://blog.gfdsa.net/JPush-Node.js-sdk/v3/jpush.html ## 支持本项目 如果你觉得这个项目还不错,就请作者喝杯咖啡吧 [](http://me.alipay.com/youxilua) [](https://bitdeli.com/free "Bitdeli Badge")