XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/bilibili-API-collect

对于图片(广告) API 的一些修复 (#381)

* 新增客户端图片(广告) API * new: 添加了参数注释 * Update * Update docs * 修复了一些新增文稿的错误

7639bc3
Nemo2011 <91071485+Nemo2011@users.noreply.github.com>
提交于

代码差异

2 个文件 +29 -5
Modified APP_widget/splash.md +27 -4
@@ -85,7 +85,10 @@ curl -G 'http://app.bilibili.com/x/v2/splash/brand/list' \
85 85
86 86 <details>
87 87 <summary>查看响应示例:</summary>
88 <<<<<<< HEAD
89 =======
88 90 <!--
91 >>>>>>> d4f20b5a37730a3665341ec41a48b333bd133ac0
89 92 ```json
90 93 {
91 94 "code": 0,
@@ -149,6 +152,10 @@ curl -G 'http://app.bilibili.com/x/v2/splash/brand/list' \
149 152 *请求方式: GET*
150 153
151 154 | 参数名 | 类型 | 内容 | 必要性 | 备注 |
155 <<<<<<< HEAD
156 | - | - | - | - | - |
157 =======
158 >>>>>>> d4f20b5a37730a3665341ec41a48b333bd133ac0
152 159 | build | int | 客户端内部版本号 | 必要 | |
153 160 | mobi_app | str | android, iphone, ipad | 必要 | |
154 161 | platform | str | android, ios | 必要 | |
@@ -168,6 +175,10 @@ curl -G 'http://app.bilibili.com/x/v2/splash/brand/list' \
168 175 `data` 字段:
169 176
170 177 | 字段 | 类型 | 内容 | 备注 |
178 <<<<<<< HEAD
179 | - | - | - | - |
180 =======
181 >>>>>>> d4f20b5a37730a3665341ec41a48b333bd133ac0
171 182 | splash_request_id | str | 不知道 | |
172 183 | max_time | int | 最长显示时间? | |
173 184 | min_interval | int | 最少显示时间? | 千分之一秒单位 |
@@ -177,13 +188,14 @@ curl -G 'http://app.bilibili.com/x/v2/splash/brand/list' \
177 188 `list` 中的对象 ~~(不得不说 bilibili 的广告准备真精良)~~:
178 189
179 190 | 字段 | 类型 | 内容 | 备注 |
191 | - | - | - | - |
180 192 | id | int | 不知道 | |
181 193 | type | int | 不知道 | |
182 194 | card_type | int | 不知道 | |
183 195 | duration | int | 持续时间? | |
184 196 | begin_time | int | 开始时间? | 时间戳 |
185 197 | end_time | int | 停止时间? | 时间戳 |
186 | thumb | url | ![](https: //i0.hdslb.com/bfs/sycp/creative_img/202205/7743233596d9c4addf44289df7f32e3a.jpg) | 内容不用说了吧 |
198 | thumb | url | 广告图片 | [举个例子](#example) |
187 199 | hash | str | 不知道 | |
188 200 | logo_url | str | 不知道 | 空的 |
189 201 | logo_hash | str | 不知道 | 也是空的 |
@@ -207,8 +219,6 @@ curl -G 'http://app.bilibili.com/x/v2/splash/brand/list' \
207 219 | interact_distance | int | 暂不明确 | |
208 220 | guide_button_list | list | 所有的按钮 | |
209 221
210 ~~ 真不知道这种 API 有什么解析的作用。。。~~
211
212 222 **示例:**
213 223
214 224 ```shell
@@ -221,7 +231,7 @@ curl -G 'http://app.bilibili.com/x/v2/splash/list' \
221 231 --data-urlencode="birth=0101"
222 232 ```
223 233 <details>
224 <summary>查看响应示例(慎点,广告多的要命,我的 IDE 加载时都卡了,即使缩减了) ~~救命,卡死了~~ :</summary>
234 <summary>点我发现 bilibili 广告的新大陆:</summary>
225 235
226 236 ``` python
227 237 # Python 格式的 dict, 将就看一下,提取了 data
@@ -454,3 +464,16 @@ dct = {
454 464 "splash_request_id": "1653661460572q172a27a3a3q2165",
455 465 }
456 466 ```
467
468 </details>
469
470 <span id="example">
471 <details>
472 <summary>
473 一张广告图片(慎点):
474 </summary>
475
476 ![](https://i0.hdslb.com/bfs/sycp/creative_img/202205/7743233596d9c4addf44289df7f32e3a.jpg)
477
478 </details>
479 </span>
Modified README.md +2 -1
@@ -207,11 +207,12 @@ PS:所有 rest api 均可使用 https,文档中为了统一写作`http`,
207 207 - [x] [分区当日投稿数](web_widget/zone_upload.md)
208 208 - [x] [404 页漫画收集](web_widget/404_manga.md)
209 209 - [ ] [APP端组件](APP_widget)
210 - [x] [开屏图片](APP_widget/splash.md)
210 - [x] [开屏图片 + 恰饭珍贵录像](APP_widget/splash.md)
211 211 - [ ] [个性装扮](garb)
212 212 - [x] [APP 主题](garb/skin.md)
213 213 - [x] [主题色](garb/color.md)
214 214
215
215 216 B站专栏同步推出[《B站api研究记》](https://www.bilibili.com/read/readlist/rl207146)系列(更新状态:咕咕......),~~欢迎关注~~
216 217
217 218 **--Project_by [社会易姐QwQ](https://space.bilibili.com/293793435)**