feat: 动态首页公告栏 (旧版)

close #1254
This commit is contained in:
SessionHu 2025-05-01 08:45:44 +08:00
parent f9d238b0be
commit 8c6bb6be92
No known key found for this signature in database
GPG Key ID: 9E7E64C25FE3301A
2 changed files with 52 additions and 1 deletions

View File

@ -176,7 +176,7 @@ B站 API 采用 C/S 结构,大多数接口为 REST API 和 gRPC少部分接
- [x] [特定话题动态列表](docs/dynamic/tag_dynamics.md)
- [ ] [动态内容](docs/dynamic/get_dynamic_detail.md)
- [ ] [导航栏动态](docs/dynamic/nav.md)
- [ ] [首页公告栏](docs/dynamic/banner.md)
- [x] [首页公告栏](docs/dynamic/banner.md)
- [ ] [创作中心](docs/creativecenter)
- [ ] [投稿](docs/creativecenter/upload.md)
- [ ] [统计与数据](docs/creativecenter/statistics&data.md)

View File

@ -79,3 +79,54 @@ curl 'https://api.bilibili.com/x/dynamic/feed/dyn/banner?platform=1&position=web
</details>
<!-- Generated by json-apidoc-gen @ 2025-05-01T00:21:48.81113265Z -->
## 动态首页公告栏 (旧版)
> https://api.vc.bilibili.com/banner_svr/v1/banner_svr/show
*请求方法: GET*
**URL 参数:**
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ------ | ---- | ---- | ------ | ---- |
| platform | number | 平台? | 不必要 | 默认为 `1` |
| position | string | 位置? | 不必要 | 默认为 `web动态` |
**JSON 回复:**
与 [动态首页公告栏 (新版)](#动态首页公告栏-新版) 相同, 除了少了个 `data.banners[].banner_id`
**示例:**
```shell
curl 'https://api.vc.bilibili.com/banner_svr/v1/banner_svr/show'
```
<details>
<summary>查看响应示例:</summary>
```json
{
"code": 0,
"message": "0",
"ttl": 1,
"data": {
"banners": [
{
"img_url": "https://i0.hdslb.com/bfs/vc/9c699f2acbcad00197e92c401b835d2c6aba8a55.png",
"title": "点击进入",
"link": "https://www.bilibili.com/blackboard/activity-5zJxM3spoS.html",
"platform": 1,
"weight": 1,
"position": "web动态",
"start_time": 1582862523,
"end_time": 2056204800
}
]
}
}
```
</details>