Skip to content

Commit b3682a9

Browse files
committed
Create url_scheme.md
1 parent 2d53180 commit b3682a9

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

src/api/url_scheme.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
title: url_scheme
3+
---
4+
5+
## 添加聊天对象
6+
7+
yunhu://chat-add
8+
9+
参数:
10+
11+
| 名称 | 必须 | 备注 |
12+
| ----- | ---- | ---- |
13+
| id || 要添加的目标对象ID |
14+
| type || 要添加的目标对象类别,用户-user,群聊-group,机器人-bot |
15+
16+
实例(添加ID为123的用户):
17+
```text
18+
yunhu://chat-add?id=123&type=user
19+
```
20+
21+
## 跳转指定文章
22+
23+
yunhu://post-detail
24+
25+
参数:
26+
27+
| 名称 | 必须 | 备注 |
28+
| ----- | ---- | ---- |
29+
| id || 要跳转的目标文章ID |
30+
31+
实例(跳转到ID为111的文章):
32+
```text
33+
yunhu://post-detail?id=111
34+
```
35+
36+
## 跳转指定文章分区
37+
38+
yunhu://alley-detail
39+
40+
参数:
41+
42+
| 名称 | 必须 | 备注 |
43+
| ----- | ---- | ---- |
44+
| id || 要跳转的目标文章分区ID |
45+
46+
实例(跳转到ID为41的文章分区):
47+
```text
48+
yunhu://post-detail?id=41
49+
```
50+
51+
## 观看广告
52+
53+
yunhu://ad
54+
55+
参数:
56+
57+
| 名称 | 必须 | 备注 |
58+
| ----- | ---- | ---- |
59+
| id || 要观看的广告ID |
60+
61+
实例(观看广告ID为123的广告):
62+
```text
63+
yunhu://ad?id=123
64+
```

0 commit comments

Comments
 (0)