PushWoosh.js Node的PushWoosh API封装器
PushWoosh.js 是一个 PushWoosh REST API 的封装器。请注意:该项目仍在开发中,尚未经过彻底测试。
安装:
$ npm install PushWoosh.js
用法示例:
var PushWoosh = require('PushWoosh.js');
var pushWoosh = new PushWoosh({
auth: your_auth_key,
application: your_application_id
});
可用方法:
PushWoosh.js 的方法与 PushWoosh API 一致,支持以下操作:
-
创建消息:创建并发送推送消息。
-
删除消息:删除已发送的推送消息。
-
注册设备:将设备注册到推送服务中。
-
注销设备:从推送服务中移除设备。
-
设置标签:为设备添加标签以便分类。
-
获取标签:获取设备的标签信息。
-
设置徽章:设置应用程序图标上的徽章数字。
-
推送状态:查看消息的推送状态。
-
获取最近区域:查询设备最近的地理区域。
示例:
pushWoosh.createMessage({
// 参考 PushWoosh API 详细参数
});
更多信息,请参考 [PushWoosh API 文档]。
下载地址
用户评论