Skip to content

Commit

Permalink
添加bvID相关和POST参数类型
Browse files Browse the repository at this point in the history
  • Loading branch information
SocialSisterYi committed Mar 23, 2020
1 parent 30a6f2c commit 8521edf
Show file tree
Hide file tree
Showing 13 changed files with 213 additions and 161 deletions.
8 changes: 5 additions & 3 deletions danmaku/snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ http://api.bilibili.com/x/v2/dm/ajax

参数:

| 参数名 | 内容 | 必要性 | 备注 |
| ------ | -------- | ------ | ---- |
| aid | 视频avID | 必要 | |
| 参数名 | 内容 | 必要性 | 备注 |
| ------ | ------------------ | ------ | ---- |
| aid | 视频avID或视频bvID | 必要 | |

**json回复:**

Expand All @@ -38,6 +38,8 @@ http://api.bilibili.com/x/v2/dm/ajax

http://api.bilibili.com/x/v2/dm/ajax?aid=43337021

http://api.bilibili.com/x/v2/dm/ajax?aid=BV1rb411m7gE

```json
{
"code": 0,
Expand Down
2 changes: 1 addition & 1 deletion electric/Bcoin.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ http://api.bilibili.com/x/ugcpay/trade/elec/pay/quick

需要登录(SESSDATA)

参数:
参数( application/x-www-form-urlencoded )

| 参数名 | 内容 | 必要性 | 备注 |
| -------- | ------------------- | ------ | ------------------------------------------------- |
Expand Down
2 changes: 1 addition & 1 deletion electric/charge_msg.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ http://api.bilibili.com/x/ugcpay/trade/elec/message

需要登录(SESSDATA)

参数:
参数( application/x-www-form-urlencoded )

| 参数名 | 内容 | 必要性 | 备注 |
| -------- | ------------------- | ------ | ---- |
Expand Down
14 changes: 7 additions & 7 deletions login/QR.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

## 申请二维码URL及扫码秘钥

http://passport.bilibili.com/qrcode/getLoginUrl
> http://passport.bilibili.com/qrcode/getLoginUrl
*方式:GET*

Expand Down Expand Up @@ -58,7 +58,7 @@ http://passport.bilibili.com/qrcode/getLoginUrl

## 验证二维码登录

http://passport.bilibili.com/qrcode/getLoginInfo
> http://passport.bilibili.com/qrcode/getLoginInfo
*方式:POST*

Expand All @@ -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 | 扫码是否成功 | |
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -113,7 +113,7 @@ curl -d "oauthKey=xxx" "http://passport.bilibili.com/qrcode/getLoginInfo"
}
```

扫描成功手机端确认登录后,`status`为true`data`为对象,并向浏览器写入cookie
扫描成功手机端确认登录后,`status``true``data`为对象,并向浏览器写入cookie

```json
{
Expand Down
20 changes: 13 additions & 7 deletions login/login_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## 登录用户信息1(完整)

http://api.bilibili.com/nav (使用转义)

http://api.bilibili.com/x/web-interface/nav (原始数据)
> http://api.bilibili.com/nav (使用转义)
>
> http://api.bilibili.com/x/web-interface/nav (原始数据)
*方式:GET*

Expand Down Expand Up @@ -92,6 +92,8 @@ http://api.bilibili.com/x/web-interface/nav (原始数据)

示例:

查询当前登录用户的信息

http://api.bilibili.com/x/web-interface/nav

```json
Expand Down Expand Up @@ -154,7 +156,7 @@ http://api.bilibili.com/x/web-interface/nav

## 登录用户信息2(仅部分 带有转义)

http://account.bilibili.com/home/userInfo (带有转义)
> http://account.bilibili.com/home/userInfo (带有转义)
*方式:GET*

Expand Down Expand Up @@ -198,6 +200,8 @@ http://account.bilibili.com/home/userInfo (带有转义)

示例:

查询当前登录用户的信息

http://account.bilibili.com/home/userInfo

```json
Expand Down Expand Up @@ -230,7 +234,7 @@ http://account.bilibili.com/home/userInfo

## 登录用户状态数

http://api.bilibili.com/x/web-interface/nav/stat
> http://api.bilibili.com/x/web-interface/nav/stat
*方式:GET*

Expand All @@ -253,6 +257,10 @@ http://api.bilibili.com/x/web-interface/nav/stat

示例:

查询当前登录用户的状态数

粉丝数为365,关注数为695,发送的动态数为162

http://api.bilibili.com/x/web-interface/nav/stat

```json
Expand All @@ -267,5 +275,3 @@ http://api.bilibili.com/x/web-interface/nav/stat
}
}
```

粉丝数为365,关注数为695,发送的动态数为162
6 changes: 3 additions & 3 deletions user/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<img src="/imgs/akari.jpg" width="200" height="200"/>

## 用户详细信息1 (用于空间)
http://api.bilibili.com/x/space/acc/info
> http://api.bilibili.com/x/space/acc/info
*方式:GET*

Expand Down Expand Up @@ -119,7 +119,7 @@ http://i2.hdslb.com/bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png

## 用户详细信息2 (用于名片)

http://api.bilibili.com/x/web-interface/card
> http://api.bilibili.com/x/web-interface/card
*方式:GET*

Expand Down Expand Up @@ -322,7 +322,7 @@ http://api.bilibili.com/x/web-interface/card?mid=2&photo=true

## 本用户详细信息

http://api.bilibili.com/x/space/myinfo
> http://api.bilibili.com/x/space/myinfo
*方式:GET*

Expand Down
Loading

0 comments on commit 8521edf

Please sign in to comment.