File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 3
3
/**
4
4
* 此示例为JPush Device API示例
5
5
* 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
7
7
*/
8
+ ini_set ("display_errors " , "On " );
9
+ error_reporting (E_ALL | E_STRICT );
8
10
require_once ("../src/JPush/JPush.php " );
9
11
10
12
$ br = '<br/> ' ;
13
+ $ br = "\r\n" ;
11
14
$ app_key = 'dd1066407b044738b6479275 ' ;
12
15
$ master_secret = 'e8cc9a76d5b7a580859bcfa7 ' ;
13
16
Original file line number Diff line number Diff line change 2
2
/**
3
3
* 该示例主要为JPush Push API的调用示例
4
4
* 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
6
6
*/
7
+ ini_set ("display_errors " , "On " );
8
+ error_reporting (E_ALL | E_STRICT );
7
9
require_once ("../src/JPush/JPush.php " );
8
10
9
11
$ br = '<br/> ' ;
Original file line number Diff line number Diff line change 3
3
/**
4
4
* 此示例为JPush Report API的调用示例
5
5
* 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
7
7
*/
8
+ ini_set ("display_errors " , "On " );
9
+ error_reporting (E_ALL | E_STRICT );
8
10
require_once ("../src/JPush/JPush.php " );
9
11
10
12
$ br = '<br/> ' ;
Original file line number Diff line number Diff line change 1
1
<?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 );
3
9
require_once ("../src/JPush/JPush.php " );
4
10
5
11
$ br = '<br/> ' ;
You can’t perform that action at this time.
0 commit comments