From aec16ba06f5f315d9826a2c6aff281a111e67f88 Mon Sep 17 00:00:00 2001 From: Feliciano Long Date: Thu, 31 Mar 2022 14:03:00 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=B7=BB=E5=8A=A0is=5Fsenior=5Fmember?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E8=AF=B4=E6=98=8E=20(#340)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://api.bilibili.com/x/space/acc/info?mid=47399 --- user/info.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/info.md b/user/info.md index a720a70..322d19b 100644 --- a/user/info.md +++ b/user/info.md @@ -66,7 +66,7 @@ | profession | obj | | | | tags | null | | | | series | obj | | | -| is_senior_member | num | | | +| is_senior_member | num | 是否为硬核会员 | 0:否
1:是 | `data`中的`official`对象: From a7629ed6c2dc1e4656cbf96267867ddf78b32c4c Mon Sep 17 00:00:00 2001 From: holll <36074987+holll@users.noreply.github.com> Date: Mon, 11 Apr 2022 08:35:24 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E4=BF=AE=E6=AD=A3B=E5=B8=81=E5=85=85?= =?UTF-8?q?=E7=94=B5=E6=95=B0=E9=87=8F=E8=8C=83=E5=9B=B4=20(#352)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electric/Bcoin.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electric/Bcoin.md b/electric/Bcoin.md index 887d0f3..9f8732a 100644 --- a/electric/Bcoin.md +++ b/electric/Bcoin.md @@ -26,7 +26,7 @@ | 参数名 | 类型 | 内容 | 必要性 | 备注 | | -------- | ---- | ------------------------ | ------ | ------------------------------------------------- | -| bp_num | num | 贝壳数量 | 必要 | 必须在20-99990之间 | +| bp_num | num | 贝壳数量 | 必要 | 必须在2-9999之间 | | is_bp_remains_prior | bool | 是否优先扣除B币余额 | 必要 | [true,false],B币充电请选择true | | up_mid | num | 充电对象用户mid | 必要 | | | otype | str | 充电来源 | 必要 | up:空间充电
archive:视频充电 | From 837069ab116f2c2f10f5720e6d32c786f5f5ad91 Mon Sep 17 00:00:00 2001 From: 7rikka Date: Mon, 11 Apr 2022 08:36:00 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B9=B4=E5=BA=A6?= =?UTF-8?q?=E5=A4=A7=E4=BC=9A=E5=91=98=E7=A6=8F=E5=88=A9=E5=85=91=E6=8D=A2?= =?UTF-8?q?=E9=A1=B9=20(#349)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 添加漫画签到接口 * 添加积分商城相关接口 * 添加基本兑换状态码 * fix format * 添加新项 * 链接勘误 Co-authored-by: 社会易姐QwQ <45892418+SocialSisterYi@users.noreply.github.com> --- danmaku/danmaku_proto.md | 2 +- user/vip.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/danmaku/danmaku_proto.md b/danmaku/danmaku_proto.md index f2b4625..b4b5ff5 100644 --- a/danmaku/danmaku_proto.md +++ b/danmaku/danmaku_proto.md @@ -37,7 +37,7 @@ **proto回复:** -porto定义见:[bilibili.community.service.dm.v1.DmSegMobileReply](../grpc_api/bilibili/community/service/dm/v1.proto) +porto定义见:[bilibili.community.service.dm.v1.DmSegMobileReply](../grpc_api/bilibili/community/service/dm/v1/dm.proto) 消息`DmSegMobileReply`: diff --git a/user/vip.md b/user/vip.md index 10ba29e..694f085 100644 --- a/user/vip.md +++ b/user/vip.md @@ -102,7 +102,7 @@ curl -G 'http://api.bilibili.com/x/vip/privilege/my' \ | 参数名 | 类型 | 内容 | 必要性 | 备注 | | ---------- | ---- | ---------- | -------- | ---------------------- | -| type | num | 兑换类型 | 必要 | 1:B币
2:会员购优惠券
3:漫画福利券 | +| type | num | 兑换类型 | 必要 | 1:B币
2:会员购优惠券
3:漫画福利券
4.会员购运费券 | | csrf | num | CSRF token | 必要 | Cookie bili_jct字段 | **json回复:** From 1a8e93ec31c6234f25cede5a8dda245216efcf71 Mon Sep 17 00:00:00 2001 From: OceanJiang Date: Mon, 11 Apr 2022 08:36:19 +0800 Subject: [PATCH 4/7] Update like_coin_fav.md (#348) --- article/like_coin_fav.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/article/like_coin_fav.md b/article/like_coin_fav.md index fa8ca0f..06db9db 100644 --- a/article/like_coin_fav.md +++ b/article/like_coin_fav.md @@ -74,6 +74,7 @@ curl 'http://api.bilibili.com/x/article/like' \ | 参数名 | 类型 | 内容 | 必要性 | 备注 | | -------- | ---- | ------------------- | ------ | ------- | | aid | num | 文章cvid | 必要 | | +| upid | num | 文章作者mid | 必要 | | | multiply | num | 投币数量 | 必要 | 上限为2 | | avtype | num | 2 | 必要 | 必须为2 | | csrf | str | CSRF Token(位于cookie) | 必要 | | @@ -102,6 +103,7 @@ data 对象: ```shell curl 'http://api.bilibili.com/x/web-interface/coin/add' \ --data-urlencode 'aid=5806746' \ +--data-urlencode 'upid=486980924' \ --data-urlencode 'multiply=1' \ --data-urlencode 'avtype=2' \ --data-urlencode 'csrf=xxx' \ From 2f0207db2c0fc2d576ac7612905bb041ff52b342 Mon Sep 17 00:00:00 2001 From: lb-chc <69136546+lb-chc@users.noreply.github.com> Date: Mon, 11 Apr 2022 08:37:52 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=8C=E7=BA=A7?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E7=9A=84=E5=AE=9A=E4=B9=89=E5=9F=9F=E6=9C=89?= =?UTF-8?q?=E6=95=88=E8=8C=83=E5=9B=B4=20(#346)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 对于 ## 获取评论区明细_翻页加载 > http://api.bilibili.com/x/v2/reply 的ps参数,虽然可以最高设置为45,但与之对应的replies[]最多仅可有22个项, 意味着遍历二级评论所需页数计算中, 每页内容数量应为22, 既所需页数 = rcount / 22 --- comment/list.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comment/list.md b/comment/list.md index 35724f0..3e36ddc 100644 --- a/comment/list.md +++ b/comment/list.md @@ -27,7 +27,7 @@ | oid | num | 目标评论区 id | 必要 | | | sort | num | 排序方式 | 非必要 | 默认为0
0:按时间
1:按点赞数
2:按回复数 | | nohot | num | 是否不显示热评 | 非必要 | 默认为0
1:不显示
0:显示 | -| ps | num | 每页项数 | 非必要 | 默认为20
定义域:1-49 | +| ps | num | 每页项数 | 非必要 | 默认为20
定义域:1-49
对于data_replies[], 既遍历二级评论用途的定义域有效范围为22 | | pn | num | 页码 | 非必要 | 默认为1 | **json回复:** @@ -47,8 +47,8 @@ | ------------ | -------------------------------- | -------- | ---------------- | | page | obj | 页信息 | | | config | obj | 评论区显示控制 | | -| replies | 禁用时:null
正常时:array | 评论列表 | | -| hots | 禁用时:null
正常时:array | 热评列表 | | +| replies | 禁用时:null
正常时:array | 评论列表 | 最大容量为22 | +| hots | 禁用时:null
正常时:array | 热评列表 | 由于ps定义域为45,最大容量可能也为23 | | upper | obj | 置顶评论 | | | top | null | (?) | | | notice | 无效时:null
有效时:obj | 评论区公告信息 | | From 6ff4b90fded0a21f2e102a6ea5414ee814b3e24d Mon Sep 17 00:00:00 2001 From: lb-chc <69136546+lb-chc@users.noreply.github.com> Date: Mon, 11 Apr 2022 08:39:46 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E5=B7=A5=E5=85=B7=E7=9A=84=E9=93=BE=E6=8E=A5?= =?UTF-8?q?,=20=E4=B8=BA=E4=BD=BF=E7=94=A8=E8=AF=A5=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E6=96=B9=E4=BE=BF=20(#342)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加一个方便工具的链接, 为使用该项目提供方便 --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6fcc3d3..d551a8b 100644 --- a/README.md +++ b/README.md @@ -291,4 +291,6 @@ OR Aifadian:https://afdian.net/@ShakaiAneE - [uw-labs/bloomrpc](https://github.com/uw-labs/bloomrpc): GUI Client for GRPC Services -- [grpc/grpc](https://github.com/grpc/grpc): The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) \ No newline at end of file +- [grpc/grpc](https://github.com/grpc/grpc): The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) + + - [quicktype](https://github.com/quicktype/quicktype) quicktype generates strongly-typed models and serializers from JSON, JSON Schema, TypeScript, and GraphQL queries, making it a breeze to work with JSON type-safely in many programming languages.一键生成多种语言的json反序列化所需类,以便于快速反序列化, 有网页版 From 253db3f0dddc4c1e99ba01bed5e10e3a12c3ca29 Mon Sep 17 00:00:00 2001 From: OceanJiang Date: Mon, 11 Apr 2022 08:42:46 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E8=A1=A5=E5=85=85=E9=9F=B3=E9=A2=91?= =?UTF-8?q?=E6=8A=95=E5=B8=81=20(#347)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 补充音频投币 * Update coin&fav.md Co-authored-by: 社会易姐QwQ <45892418+SocialSisterYi@users.noreply.github.com> --- audio/coin&fav.md | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/audio/coin&fav.md b/audio/coin&fav.md index 895fb54..d4ea2af 100644 --- a/audio/coin&fav.md +++ b/audio/coin&fav.md @@ -2,6 +2,7 @@ - [查询音频收藏状态](#查询音频收藏状态) - [查询音频投币数](#查询音频投币数) +- [投币音频](#投币音频) --- @@ -101,4 +102,51 @@ curl -G 'http://www.bilibili.com/audio/music-service-c/web/coin/audio' \ } ``` +## 投币音频 + +> http://www.bilibili.com/audio/music-service-c/web/coin/add + +*请求方式:POST* + +认证方式:Cookie(SESSDATA) + +**url参数:** + +| 参数名 | 类型 | 内容 | 必要性 | 备注 | +| -------- | ---- | ------------------------- | ------ | ---- | +| sid | num | 音频 auid | 必要 | | +| multiply | num | 投币数量(最大为 2) | 必要 | | +| csrf | str | CSRF Token(位于 cookie) | 必要 | | + +**json回复:** + +根对象: + +| 字段 | 类型 | 内容 | 备注 | +| ---- | ---- | --------- | ------------------------------------------------------------ | +| code | num | 返回值 | 0:成功
72000000:参数错误
72010002:账号未登陆
7201006:该音频不存在或已被下架 | +| msg | str | 错误信息 | 默认为 0 | +| data | str | 当前投币数量 | 0 为未投币,上限为 2 | + +**示例:** + +为音频`au13598`投币 + +```shell +curl -G 'https://www.bilibili.com/audio/music-service-c/web/coin/add' \ +--data-urlencode 'sid=15664' \ +-b 'SESSDATA=xxx;DedeUserID=1;' +``` + +
+查看响应示例: + +```json +{ + "code": 0, + "msg": "0", + "data": "1" +} +``` +