label305 / apns-http-bridge

此包已被废弃,不再维护。未建议替代包。

APNs HTTP Bridge 的 API 封装器。APNs HTTP Bridge 是一个小的 Node.js 应用程序,它提供 HTTP webservice 以发布 APNs 通知(苹果的推送通知服务)。例如,为无法完全允许套接字连接的平台提供访问权限,如 Google App Engine。

0.2 2014-10-21 11:06 UTC

This package is not auto-updated.

Last update: 2016-10-23 14:49:46 UTC


README

此仓库包含 APNs HTTP Bridge 的 API 封装器。APNs HTTP Bridge 是一个小的 Node.js 应用程序,它提供 HTTP webservice 以发布 APNs 通知(苹果的推送通知服务)。例如,为无法完全允许套接字连接的平台提供访问权限,如 Google App Engine。

入门

use Label305\APNsHTTPBridge\BridgeConnection;
use Label305\APNsHTTPBridge\PushMessage;
$bridgeConnection = new BridgeConnection("http://127.0.0.1:8080/");
// You can have per device badges by using the PushDevice object
$message = new PushMessage("bla", ["token 1", new PushDevice("token 2", 3)], '{ "extra": "json data" }', 3);
$result = $message->send($bridgeConnection);

许可协议

版权所有 2014 Label305 B.V.

根据 Apache License,版本 2.0(“许可证”);除非根据适用法律或书面同意,否则不得使用此文件,除非遵守许可证。您可以在以下位置获得许可证副本:

https://apache.ac.cn/licenses/LICENSE-2.0

除非适用法律要求或书面同意,否则根据许可证分发的软件按“原样”基础分发,不提供任何明示或暗示的保证或条件。有关许可证的特定语言管理权限和限制,请参阅许可证。