diff --git a/docs/_media/shortcuts_cn.png b/docs/_media/shortcuts_cn.png deleted file mode 100644 index b3fba4a..0000000 Binary files a/docs/_media/shortcuts_cn.png and /dev/null differ diff --git a/docs/en-us/tutorial.md b/docs/en-us/tutorial.md index 043d71c..ea68c7a 100644 --- a/docs/en-us/tutorial.md +++ b/docs/en-us/tutorial.md @@ -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.
critical: Important alert, will ring even in silent mode
active:Default value, the system will immediately light up the screen to display the notification
timeSensitive:Time-sensitive notification, can display the notification in focus mode.
passive:Only adds the notification to the notification list, will not light up the screen. | diff --git a/docs/tutorial.md b/docs/tutorial.md index 811f925..0c32afb 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -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 | 推送中断级别。
critical: 重要警告, 在静音模式下也会响铃
active:默认值,系统会立即亮屏显示通知
timeSensitive:时效性通知,可在专注状态下显示通知。
passive:仅将通知添加到通知列表,不会亮屏提醒。 | @@ -87,9 +88,4 @@ curl -X "POST" "https://api.day.app/push" \ * [浏览器扩展](https://github.com/ij369/bark-sender) 将网页内容发送到手机 ## 快捷指令 -Bark 支持快捷指令直接发送推送,以下是当收到交警短信时,忽略静音模式持续响铃提醒用户的自动化示例。 - -1. 创建个人自动化 -2. 选择信息、填写信息包含关键词触发自动化,选择立即执行,点击下一步 -3. 选择新建空白自动化,选择 Bark 发送推送到此设备快捷指令 -4. 填写推送配置,标题可以选择短信发件人、内容可以选择短信内容,或自己自定义。 \ No newline at end of file +Bark 支持使用快捷指令直接发送推送 \ No newline at end of file