添加bvID相关和POST参数类型

This commit is contained in:
SocialSisterYi
2020-03-23 16:46:13 +08:00
parent 30a6f2c275
commit 8521edff89
13 changed files with 213 additions and 161 deletions

View File

@@ -15,7 +15,7 @@
## 申请二维码URL及扫码秘钥
http://passport.bilibili.com/qrcode/getLoginUrl
> http://passport.bilibili.com/qrcode/getLoginUrl
*方式GET*
@@ -58,7 +58,7 @@ http://passport.bilibili.com/qrcode/getLoginUrl
## 验证二维码登录
http://passport.bilibili.com/qrcode/getLoginInfo
> http://passport.bilibili.com/qrcode/getLoginInfo
*方式POST*
@@ -68,14 +68,14 @@ http://passport.bilibili.com/qrcode/getLoginInfo
「sid」「DedeUserID」 「DedeUserID__ckMd5」 「SESSDATA」 「bili_jct」
参数:
参数 application/x-www-form-urlencoded
| 参数名 | 内容 | 必要性 | 备注 |
| ---------| ------------ | ------ |------------------------------ |
| oauthKey | 扫码登录秘钥 | 必要 | |
| gourl | 跳转url | 非必要 | 默认为http://www.bilibili.com |
**json回复**
| 字段 | 类型 | 内容 | 备注 |
| ------- | ------------------------ | ----------------------------------------- | ------------------------------------------------------------ |
| status | bool | 扫码是否成功 | |
@@ -93,7 +93,7 @@ data 对象:
curl -d "oauthKey=xxx" "http://passport.bilibili.com/qrcode/getLoginInfo"
当秘钥正确时但未扫描时`status`为false`data`为num值-4
当秘钥正确时但未扫描时`status`为false`data`为num值`-4`
```json
{
@@ -103,7 +103,7 @@ curl -d "oauthKey=xxx" "http://passport.bilibili.com/qrcode/getLoginInfo"
}
```
扫描成功但手机端未确认时`status`为false`data`为num值-4
扫描成功但手机端未确认时`status``false``data`为num值`-5`
```json
{
@@ -113,7 +113,7 @@ curl -d "oauthKey=xxx" "http://passport.bilibili.com/qrcode/getLoginInfo"
}
```
扫描成功手机端确认登录后,`status`为true`data`为对象并向浏览器写入cookie
扫描成功手机端确认登录后,`status``true``data`为对象并向浏览器写入cookie
```json
{