From b8a124109ddb9e2c54fd840e7952e171647bce70 Mon Sep 17 00:00:00 2001 From: LaMerChiang Date: Tue, 28 Nov 2023 22:43:03 +0800 Subject: [PATCH] =?UTF-8?q?Update=20action.md=20=E5=A4=A7=E4=BC=9A?= =?UTF-8?q?=E5=91=98=E6=AF=8F=E6=97=A5=E7=BB=8F=E9=AA=8C=20(#877)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/vip/action.md | 57 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/docs/vip/action.md b/docs/vip/action.md index da8ee96..1f533b9 100644 --- a/docs/vip/action.md +++ b/docs/vip/action.md @@ -46,3 +46,60 @@ curl 'https://api.bilibili.com/x/vip/privilege/receive' \ ``` + +## 大会员每日经验 + +> https://api.bilibili.com/x/vip/experience/add + +*请求方式:POST* + +认证方式:Cookie (SESSDATA) + +**正文参数 (application/x-www-form-urlencoded):** + +| 参数名 | 类型 | 内容 | 必要性 | 备注 | +|------|-----|-----------------------|-------------|--------------------------------------------------------------------------------------| +| csrf | str | CSRF Token (位于cookie) | Cookie 方式必要 | | + +**json回复:** + +根对象: + +| 字段 | 类型 | 内容 | 备注 | +|---------|-----|------|---------------------------------------------------------------------------------------------------| +| code | num | 返回值 | -101:账号未登录
-111:csrf 校验失败
69198:用户经验已经领取
6034007:请求频繁,请稍后再试
0:成功 | +| message | str | 错误信息 | ` | +| ttl | num | 1 | | +| data | obj | | 信息本体 | + +**`data`对象:** + +| 字段名 | 类型 | 内容 | 备注 | +| ------------------ | ------------------------------- | -------------------- | ---------------------------------------------- | +| type | num | 0 | | +| is_grant | bool | | 暂时发现 code 为 0 时为 `true` | + +**示例:** + +```shell +curl 'https://api.bilibili.com/x/vip/experience/add' \ + -b 'SESSDATA=xxx' \ + --data-urlencode 'csrf=xxx' +``` + +
+查看响应示例: + +```json +{ + "code": 69198, + "message": "用户经验已经领取", + "ttl": 1, + "data": { + "type": 0, + "is_grant": false + } +} +``` + +