添加 markdown

This commit is contained in:
Fin 2025-11-24 15:44:27 +08:00
parent 862772d649
commit 3463510e14
3 changed files with 5 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 698 KiB

View File

@ -47,7 +47,7 @@ curl -X "POST" "https://api.day.app/your_key" \
curl -X "POST" "https://api.day.app/push" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"body": "Test Bark Server",
"markdown": "Hello **Markdown**",
"title": "Test Title",
"device_key": "your_key"
}'
@ -61,6 +61,7 @@ List of supported parameters, specific effects can be previewed in the APP.
| title | Push title |
| subtitle | Push subtitle |
| body | Push content |
| markdown | Push content in Markdown format. When this is provided, the body field is ignored. |
| device_key | Device key |
| device_keys | Key array, used for batch push |
| level | Push interruption level.<br>critical: Important alert, will ring even in silent mode <br>activeDefault value, the system will immediately light up the screen to display the notification<br>timeSensitiveTime-sensitive notification, can display the notification in focus mode.<br>passiveOnly adds the notification to the notification list, will not light up the screen. |

View File

@ -47,7 +47,7 @@ curl -X "POST" "https://api.day.app/your_key" \
curl -X "POST" "https://api.day.app/push" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"body": "Test Bark Server",
"markdown": "Hello **Markdown**",
"title": "Test Title",
"device_key": "your_key"
}'
@ -61,6 +61,7 @@ curl -X "POST" "https://api.day.app/push" \
| title | 推送标题 |
| subtitle | 推送副标题 |
| body | 推送内容 |
| markdown | 推送内容markdown格式。传递了此参数将忽略 body 字段, 发送时请注意处理特殊字符。|
| device_key | 设备key |
| device_keys | key 数组,用于批量推送 |
| level | 推送中断级别。<br>critical: 重要警告, 在静音模式下也会响铃 <br>active默认值系统会立即亮屏显示通知<br>timeSensitive时效性通知可在专注状态下显示通知。<br>passive仅将通知添加到通知列表不会亮屏提醒。 |
@ -87,9 +88,4 @@ curl -X "POST" "https://api.day.app/push" \
* [浏览器扩展](https://github.com/ij369/bark-sender) 将网页内容发送到手机
## 快捷指令
Bark 支持快捷指令直接发送推送,以下是当收到交警短信时,忽略静音模式持续响铃提醒用户的自动化示例。
<img src="../_media/shortcuts_cn.png" />
1. 创建个人自动化
2. 选择信息、填写信息包含关键词触发自动化,选择立即执行,点击下一步
3. 选择新建空白自动化,选择 Bark 发送推送到此设备快捷指令
4. 填写推送配置,标题可以选择短信发件人、内容可以选择短信内容,或自己自定义。
Bark 支持使用快捷指令直接发送推送