bilibili-API-collect/vip/clockin.md
7rikka fffb2dda40
大积分首页和签到 (#527)
* 添加:大积分首页信息

* 添加:大积分签到

* fix format and add APIdoc 【大会员中心信息】

Co-authored-by: SocialSisterYi <1440239038@qq.com>
2022-11-04 02:13:07 +08:00

66 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 大会员签到
- [大积分签到](#大积分签到)
---
## 大积分签到
> https://api.bilibili.com/pgc/activity/score/task/sign
*请求方式POST*
认证方式Cookie (SESSDATA) / access_key
鉴权方式Cookie 方式下需要`Referer`在`*.bilibili.com`域名下
**正文参数( application/x-www-form-urlencoded **
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| ---------- | ---- | ----------------------- | -------------- | ---- |
| access_key | str | APP登录Token | APP方式必要 | |
| csrf | str | CSRF Token (位于cookie) | Cookie方式必要 | |
**json回复**
根对象:
| 字段名 | 类型 | 内容 | 备注 |
| ------- | ---- | -------- | ------------------------------------------------------------ |
| code | num | 响应码 | 0成功<br />-101账号未登录<br/>-401非法访问<br/>-403访问权限不足 |
| message | str | 错误信息 | |
**示例:**
web 方式:
```shell
curl 'https://api.bilibili.com/pgc/activity/score/task/sign' \
--data-urlencode 'csrf=xxx' \
-b 'SESSDATA=xxx' \
--referer 'https://www.bilibili.com'
```
APP 方式:
```shell
curl 'https://api.bilibili.com/pgc/activity/score/task/sign' \
--data-urlencode 'access_key=xxx'
```
<details>
<summary>查看响应示例:</summary>
```json
{
"code": 0,
"message": "success"
}
```
</details>