From 22e0378d83ba7d742bfc1e43e87830c291dfba2c Mon Sep 17 00:00:00 2001 From: Easy Date: Tue, 8 Feb 2022 01:50:54 +0800 Subject: [PATCH 1/4] Create FUNDING.yml --- .github/FUNDING.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..cb8c025 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,5 @@ +# These are supported funding model platforms + +github: [easychen] + + From 8f76578aa66ac225384bc1bcc7f90880fe6a71d7 Mon Sep 17 00:00:00 2001 From: Easy Date: Tue, 8 Feb 2022 11:47:37 +0800 Subject: [PATCH 2/4] Update README.md --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index aa95b64..a7a0541 100644 --- a/README.md +++ b/README.md @@ -45,28 +45,31 @@ PushDeer有Mac客户端,亦支持推送。可在Mac应用商店中搜索「Pus 1. 通过apple账号(或微信账号·仅Android版支持)登录 1. 切换到「设备」标签页,点击右上角的加号,注册当前设备 1. 切换到「Key」标签页,点击右上角的加号,创建一个Key -1. 通过访问后边的URL即可推送内容:https://api2.pushdeer.com/message/push?pushkey=key&text=要发送的内容 +1. 通过访问后边的URL即可推送内容:http://api2.pushdeer.com/message/push?pushkey=key&text=要发送的内容 > 注意注册设备用到了device token,应用一旦重装,device token会变,所以需要重新注册一次。 + ### 发送实例 +> 接口**都支持https**,但[比http要慢](https://weibo.com/1088413295/LeuYfDyfi),建议在推送敏感信息时使用。 + 发送文字: ``` -https://api2.pushdeer.com/message/push?pushkey=key&text=要发送的内容 +http://api2.pushdeer.com/message/push?pushkey=key&text=要发送的内容 ``` 发送图片: ``` -https://api2.pushdeer.com/message/push?pushkey=&text=<图片URL>&type=image +http://api2.pushdeer.com/message/push?pushkey=&text=<图片URL>&type=image ``` 发送Markdown: ``` -https://api2.pushdeer.com/message/push?pushkey=&text=标题&desp=&type=markdown +http://api2.pushdeer.com/message/push?pushkey=&text=标题&desp=&type=markdown ``` 在URL中可以用`%0A`换行,当参数中有特殊字符时,需要进行urlencode,因此更建议通过函数或者SDK发送。 @@ -87,7 +90,7 @@ function pushdeer_send($text, $desp = '', $type='text', $key = '[PUSHKEY]') 'content' => $postdata)); $context = stream_context_create($opts); - return $result = file_get_contents('https://api2.pushdeer.com/message/push', false, $context); + return $result = file_get_contents('http://api2.pushdeer.com/message/push', false, $context); } ``` @@ -109,7 +112,7 @@ function pushdeer_send($text, $desp = '', $type='text', $key = '[PUSHKEY]') ```json { - "url":"https://api2.pushdeer.com/message/push?pushkey={{pushkey}}", + "url":"http://api2.pushdeer.com/message/push?pushkey={{pushkey}}", "values":[ {"type":"markdown"}, {"text":"{{title}} "}, From 4c15f4226d4acfb2a4141d370cf6f6bb04c79a94 Mon Sep 17 00:00:00 2001 From: Easy Date: Tue, 8 Feb 2022 12:19:19 +0800 Subject: [PATCH 3/4] Update README.md --- README.md | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a7a0541..e2837ce 100644 --- a/README.md +++ b/README.md @@ -45,31 +45,28 @@ PushDeer有Mac客户端,亦支持推送。可在Mac应用商店中搜索「Pus 1. 通过apple账号(或微信账号·仅Android版支持)登录 1. 切换到「设备」标签页,点击右上角的加号,注册当前设备 1. 切换到「Key」标签页,点击右上角的加号,创建一个Key -1. 通过访问后边的URL即可推送内容:http://api2.pushdeer.com/message/push?pushkey=key&text=要发送的内容 +1. 通过访问后边的URL即可推送内容:https://api2.pushdeer.com/message/push?pushkey=key&text=要发送的内容 > 注意注册设备用到了device token,应用一旦重装,device token会变,所以需要重新注册一次。 - ### 发送实例 -> 接口**都支持https**,但[比http要慢](https://weibo.com/1088413295/LeuYfDyfi),建议在推送敏感信息时使用。 - 发送文字: ``` -http://api2.pushdeer.com/message/push?pushkey=key&text=要发送的内容 +https://api2.pushdeer.com/message/push?pushkey=key&text=要发送的内容 ``` 发送图片: ``` -http://api2.pushdeer.com/message/push?pushkey=&text=<图片URL>&type=image +https://api2.pushdeer.com/message/push?pushkey=&text=<图片URL>&type=image ``` 发送Markdown: ``` -http://api2.pushdeer.com/message/push?pushkey=&text=标题&desp=&type=markdown +https://api2.pushdeer.com/message/push?pushkey=&text=标题&desp=&type=markdown ``` 在URL中可以用`%0A`换行,当参数中有特殊字符时,需要进行urlencode,因此更建议通过函数或者SDK发送。 @@ -90,7 +87,7 @@ function pushdeer_send($text, $desp = '', $type='text', $key = '[PUSHKEY]') 'content' => $postdata)); $context = stream_context_create($opts); - return $result = file_get_contents('http://api2.pushdeer.com/message/push', false, $context); + return $result = file_get_contents('https://api2.pushdeer.com/message/push', false, $context); } ``` @@ -112,7 +109,7 @@ function pushdeer_send($text, $desp = '', $type='text', $key = '[PUSHKEY]') ```json { - "url":"http://api2.pushdeer.com/message/push?pushkey={{pushkey}}", + "url":"https://api2.pushdeer.com/message/push?pushkey={{pushkey}}", "values":[ {"type":"markdown"}, {"text":"{{title}} "}, @@ -491,4 +488,3 @@ PushDeer主要面向以下三类用户 - [API的Go实现](https://github.com/iepngs/pushdeer-backend-go) by [iepngs](https://github.com/iepngs) - From 68a4f40f5a9166d0ed94ed0f35bca63187e0c8b8 Mon Sep 17 00:00:00 2001 From: Easy Date: Tue, 8 Feb 2022 14:08:56 +0800 Subject: [PATCH 4/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e2837ce..365287e 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ PushDeer是一个可以自行架设的无APP推送服务。 |Android客户端|[WolfHugo](https://github.com/alone-wolf)|已完成|5.1|第一版开发完成,release页面可下载| |快应用|[7YHong](https://github.com/7YHong)|2022年2月27日|-|对接API中| |API|[Easy](https://ftqq.com) [古俊杰](https://github.com/ilovintit)|已完成|-|-| +|gorush的mi push版本|[SinTod](https://www.sintod.cn/)|已完成|-|代码在[push/gorush-with-mipush目录下](push/gorush-with-mipush)| # 试用