添加api鉴权说明

This commit is contained in:
SocialSisterYi
2020-07-09 16:34:50 +08:00
parent 82ad3a3e4a
commit 9796d1773b
18 changed files with 299 additions and 282 deletions

View File

@@ -12,11 +12,11 @@
**正文参数( application/x-www-form-urlencoded **
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ------- | ---- | ------------------- | ------ | -------------------- |
| room_id | num | 直播间ID | 必要 | 必须为自己的直播间ID |
| title | str | 直播间标题 | 必要 | 最大20字符 |
| csrf | str | cookies中的bili_jct | 必要 | |
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ------- | ---- | ------------------------ | ------ | -------------------- |
| room_id | num | 直播间ID | 必要 | 必须为自己的直播间ID |
| title | str | 直播间标题 | 必要 | 最大20字符 |
| csrf | str | CSRF Token位于cookie | 必要 | |
**json回复**
@@ -58,12 +58,12 @@ curl -b "SESSDATA=xxx;bili_jct=xxx" -d "room_id=10352053&title=%E6%B5%8B%E8%AF%9
**正文参数( application/x-www-form-urlencoded **
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| -------- | ---- | ---------------------- | ------ | ---------------------------- |
| room_id | num | 直播间ID | 必要 | 必须为自己的直播间ID |
| area_v2 | num | 直播分区ID子分区ID | 必要 | 详见[直播分区](live_area.md) |
| platform | str | 必须为`pc` | 必要 | |
| csrf | str | cookies中的bili_jct | 必要 | |
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| -------- | ---- | ------------------------ | ------ | ---------------------------- |
| room_id | num | 直播间ID | 必要 | 必须为自己的直播间ID |
| area_v2 | num | 直播分区ID子分区ID | 必要 | 详见[直播分区](live_area.md) |
| platform | str | 必须为`pc` | 必要 | |
| csrf | str | CSRF Token位于cookie | 必要 | |
**json回复**
@@ -185,10 +185,10 @@ curl -b "SESSDATA=xxx;bili_jct=xxx" -d "room_id=10352053&area_v2=27&platform=pc&
**正文参数( application/x-www-form-urlencoded **
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ------- | ---- | ------------------- | ------ | -------------------- |
| room_id | num | 直播间ID | 必要 | 必须为自己的直播间ID |
| csrf | str | cookies中的bili_jct | 必要 | |
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ------- | ---- | ------------------------ | ------ | -------------------- |
| room_id | num | 直播间ID | 必要 | 必须为自己的直播间ID |
| csrf | str | CSRF Token位于cookie | 必要 | |
**json回复**