Skip to content

Commit

Permalink
重新使用POST方式替代GET方式支持Bark
Browse files Browse the repository at this point in the history
刚看到Bark的API里有支持POST
  • Loading branch information
zzsj0928 authored Sep 11, 2021
1 parent ca0002b commit 2ec7fcb
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions root/usr/bin/pushbot/api/bark.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"_api": "这是Bark推送 post 模板信息 api 文件",
"_api": "【Bark推送】",

"url": "",
"url": "${bark_srv}/push?group=${device_name}",
"data": "@${tempjsonpath}",
"content_type": "",
"content_type": "Content-Type: application/json; charset=utf-8",
"str_title_start": "",
"str_title_end": "",
"str_linefeed": "%0D%0A%0D%0A",
"str_splitline": "%0D%0A%0D%0A",
"str_space": "%20",
"str_tab": "%20",
"str_linefeed": "\\n",
"str_splitline": "\\n\\n",
"str_space": " ",
"str_tab": " ",
"table_tab": "",
"font_green": "",
"font_green2": "",
Expand All @@ -23,6 +23,12 @@
"boldstar": "",
"type":
{
"bark_text": "\"${bark_srv}/${bark_token}/${1}/${nowtime}${str_linefeed}${2}?group=${device_name}\""
"device_key": "\"${bark_token}\"",
"title": "\"${1}\"",
"body": "\"${nowtime}${str_linefeed}${2}\"",
"ext_params": {
"group": "\"${device_name}\"",
"isArchive": "1"
}
}
}

0 comments on commit 2ec7fcb

Please sign in to comment.