Skip to content

Commit 3255b89

Browse files
committed
示例中增加对应API的文档
1 parent 28d3111 commit 3255b89

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

examples/device_example.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
/**
44
* 此示例为JPush Device API示例
55
* HTTP API文档:http://docs.jpush.io/server/rest_api_v3_device/
6-
* PHP API文档:(待补充)
6+
* PHP API文档:https://github.com/jpush/jpush-api-php-client/blob/master/doc/api.md#device-api
77
*/
8+
ini_set("display_errors", "On");
9+
error_reporting(E_ALL | E_STRICT);
810
require_once("../src/JPush/JPush.php");
911

1012
$br = '<br/>';
13+
$br = "\r\n";
1114
$app_key = 'dd1066407b044738b6479275';
1215
$master_secret = 'e8cc9a76d5b7a580859bcfa7';
1316

examples/push_example.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
/**
33
* 该示例主要为JPush Push API的调用示例
44
* HTTP API文档:http://docs.jpush.io/server/rest_api_v3_push/
5-
* PHP API文档:(待补充)
5+
* PHP API文档:https://github.com/jpush/jpush-api-php-client/blob/master/doc/api.md#push-api--构建推送pushpayload
66
*/
7+
ini_set("display_errors", "On");
8+
error_reporting(E_ALL | E_STRICT);
79
require_once("../src/JPush/JPush.php");
810

911
$br = '<br/>';

examples/report_example.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
/**
44
* 此示例为JPush Report API的调用示例
55
* HTTP API文档:http://docs.jpush.io/server/rest_api_v3_report/
6-
* PHP API文档:(待补充)
6+
* PHP API文档:https://github.com/jpush/jpush-api-php-client/blob/master/doc/api.md#report-api
77
*/
8+
ini_set("display_errors", "On");
9+
error_reporting(E_ALL | E_STRICT);
810
require_once("../src/JPush/JPush.php");
911

1012
$br = '<br/>';

examples/schedule_example.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<?php
2-
2+
/**
3+
* 该示例主要为JPush Schedule API的调用示例
4+
* HTTP API文档:http://docs.jpush.io/server/rest_api_push_schedule/
5+
* PHP API文档:https://github.com/jpush/jpush-api-php-client/blob/master/doc/api.md#schedule-api
6+
*/
7+
ini_set("display_errors", "On");
8+
error_reporting(E_ALL | E_STRICT);
39
require_once("../src/JPush/JPush.php");
410

511
$br = '<br/>';

0 commit comments

Comments
 (0)