修改README,全栈替换http为https
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
## 退出登录(web端)
|
||||
|
||||
> http://passport.bilibili.com/login/exit/v2
|
||||
> https://passport.bilibili.com/login/exit/v2
|
||||
|
||||
_请求方式:POST_
|
||||
|
||||
|
||||
@@ -1,25 +1,20 @@
|
||||
# 短信登录
|
||||
|
||||
- [获取国际冠字码_web端](#获取国际冠字码_web端)
|
||||
- [发送短信验证码_web端](#发送短信验证码_web端)
|
||||
- [使用短信验证码登录_web端](#使用短信验证码登录_web端)
|
||||
|
||||
---
|
||||
|
||||
web端短信登录流程:
|
||||
|
||||
1. [完成人机验证](readme.md)
|
||||
2. 发送短信,使用国际地区代码`cid`+手机号码`tel`+登录密钥`token`+极验`challenge`+验证结果`validate`+验证结果`seccode`
|
||||
3. 提交短信验证码以验证登录操作,使用国际地区代码`cid`+手机号码`tel`+短信验证码`code`
|
||||
|
||||
---
|
||||
## 获取国际冠字码_web端
|
||||
|
||||
- [短信登录(web端)](#短信登录web端)
|
||||
- [获取国际冠字码(web端)](#获取国际冠字码web端)
|
||||
- [发送短信验证码(web端)](#发送短信验证码web端)
|
||||
- [使用短信验证码登录(web端)](#使用短信验证码登录web端)
|
||||
|
||||
---
|
||||
|
||||
## 短信登录(web端)
|
||||
|
||||
### 获取国际冠字码(web端)
|
||||
|
||||
> http://passport.bilibili.com/web/generic/country/list
|
||||
> https://passport.bilibili.com/web/generic/country/list
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -58,7 +53,7 @@ web端短信登录流程:
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://passport.bilibili.com/web/generic/country/list'
|
||||
curl 'https://passport.bilibili.com/web/generic/country/list'
|
||||
```
|
||||
|
||||
<details>
|
||||
@@ -100,9 +95,9 @@ curl 'http://passport.bilibili.com/web/generic/country/list'
|
||||
|
||||
</details>
|
||||
|
||||
### 发送短信验证码(web端)
|
||||
## 发送短信验证码_web端
|
||||
|
||||
> http://passport.bilibili.com/x/passport-login/web/sms/send
|
||||
> https://passport.bilibili.com/x/passport-login/web/sms/send
|
||||
|
||||
*请求方式:POST*
|
||||
|
||||
@@ -143,7 +138,7 @@ curl 'http://passport.bilibili.com/web/generic/country/list'
|
||||
例如手机号为`13888888888`,国际id为`1 (中国大陆)`,登录秘钥为`aabbccdd`,极验challenge为`2333`,极验结果为`666666`,进行发送短信验证码操作
|
||||
|
||||
```shell
|
||||
curl 'http://passport.bilibili.com/x/passport-login/web/sms/send' \
|
||||
curl 'https://passport.bilibili.com/x/passport-login/web/sms/send' \
|
||||
--data-urlencode 'tel=13888888888' \
|
||||
--data-urlencode 'cid=1' \
|
||||
--data-urlencode 'source=main_web' \
|
||||
@@ -168,7 +163,7 @@ curl 'http://passport.bilibili.com/x/passport-login/web/sms/send' \
|
||||
|
||||
</details>
|
||||
|
||||
### 使用短信验证码登录(web端)
|
||||
## 使用短信验证码登录_web端
|
||||
|
||||
> https://passport.bilibili.com/x/passport-login/web/login/sms
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ SSO登录页面跳转()
|
||||
|
||||
### 获取公钥&盐(web端)
|
||||
|
||||
> http://passport.bilibili.com/x/passport-login/web/key
|
||||
> https://passport.bilibili.com/x/passport-login/web/key
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -64,7 +64,7 @@ SSO登录页面跳转()
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://passport.bilibili.com/x/passport-login/web/key'
|
||||
curl 'https://passport.bilibili.com/x/passport-login/web/key'
|
||||
```
|
||||
|
||||
<details>
|
||||
@@ -87,7 +87,7 @@ curl 'http://passport.bilibili.com/x/passport-login/web/key'
|
||||
|
||||
### 登录操作(web端)
|
||||
|
||||
> http://passport.bilibili.com/x/passport-login/web/login
|
||||
> https://passport.bilibili.com/x/passport-login/web/login
|
||||
|
||||
*请求方式:POST*
|
||||
|
||||
@@ -134,7 +134,7 @@ data 对象:
|
||||
例如用户账号为`12345678900`,加密后的密码为`xxx`,登录秘钥为`aabbccdd`,极验challenge为`2333`,极验结果为`666666`,进行验证登录操作
|
||||
|
||||
```shell
|
||||
curl 'http://passport.bilibili.com/x/passport-login/web/login' \
|
||||
curl 'https://passport.bilibili.com/x/passport-login/web/login' \
|
||||
--data-urlencode 'username=12345678900' \
|
||||
--data-urlencode 'password=xxx' \
|
||||
--data-urlencode 'keep=0' \
|
||||
@@ -199,7 +199,7 @@ X-Cache-Webcdn: BYPASS from jd-sxhz-dx-w-01
|
||||
|
||||
### 获取公钥&盐(web端-旧版)
|
||||
|
||||
> http://passport.bilibili.com/login?act=getkey
|
||||
> https://passport.bilibili.com/login?act=getkey
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -215,7 +215,7 @@ X-Cache-Webcdn: BYPASS from jd-sxhz-dx-w-01
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://passport.bilibili.com/login?act=getkey'
|
||||
curl 'https://passport.bilibili.com/login?act=getkey'
|
||||
```
|
||||
|
||||
<details>
|
||||
@@ -233,7 +233,7 @@ curl 'http://passport.bilibili.com/login?act=getkey'
|
||||
### 登录操作(web端-旧版)
|
||||
|
||||
|
||||
> http://passport.bilibili.com/web/login/v2
|
||||
> https://passport.bilibili.com/web/login/v2
|
||||
|
||||
*请求方式:POST*
|
||||
|
||||
@@ -380,7 +380,7 @@ X-Cache-Webcdn: BYPASS from jd-sxhz-dx-w-01
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://passport.bilibili.com/api/oauth2/getKey' \
|
||||
curl 'https://passport.bilibili.com/api/oauth2/getKey' \
|
||||
--data-urlencode 'appkey=1d8b6e7d45233436' \
|
||||
--data-urlencode 'sign=17004c193f688f0b5665c1068e733aff'
|
||||
```
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
### 申请captcha验证码
|
||||
|
||||
> http://passport.bilibili.com/x/passport-login/captcha?source=main_web
|
||||
> https://passport.bilibili.com/x/passport-login/captcha?source=main_web
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
|
||||
## 导航栏用户信息
|
||||
|
||||
> http://api.bilibili.com/nav(带有转义)
|
||||
> https://api.bilibili.com/nav(带有转义)
|
||||
>
|
||||
> http://api.bilibili.com/x/web-interface/nav(原始数据)
|
||||
> https://api.bilibili.com/x/web-interface/nav(原始数据)
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://api.bilibili.com/nav' \
|
||||
curl 'https://api.bilibili.com/nav' \
|
||||
-b 'SESSDATA=xxx'
|
||||
```
|
||||
|
||||
@@ -192,7 +192,7 @@ curl 'http://api.bilibili.com/nav' \
|
||||
<details>
|
||||
<summary>查看折叠内容</summary>
|
||||
|
||||
> http://account.bilibili.com/home/userInfo
|
||||
> https://account.bilibili.com/home/userInfo
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -242,7 +242,7 @@ curl 'http://api.bilibili.com/nav' \
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://account.bilibili.com/home/userInfo' \
|
||||
curl 'https://account.bilibili.com/home/userInfo' \
|
||||
-b 'SESSDATA=xxx;DedeUserID=1;'
|
||||
```
|
||||
|
||||
@@ -281,7 +281,7 @@ curl 'http://account.bilibili.com/home/userInfo' \
|
||||
|
||||
## 登录用户信息(APP端)
|
||||
|
||||
> http://app.bilibili.com/x/v2/account/myinfo
|
||||
> https://app.bilibili.com/x/v2/account/myinfo
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -372,7 +372,7 @@ curl 'http://account.bilibili.com/home/userInfo' \
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl -G 'http://app.bilibili.com/x/v2/account/myinfo' \
|
||||
curl -G 'https://app.bilibili.com/x/v2/account/myinfo' \
|
||||
--data-urlencode 'access_key=xxx' \
|
||||
--data-urlencode 'appkey=4409e2ce8ffd12b8' \
|
||||
--data-urlencode 'ts=0' \
|
||||
@@ -436,7 +436,7 @@ curl -G 'http://app.bilibili.com/x/v2/account/myinfo' \
|
||||
|
||||
## 登录用户状态数(双端)
|
||||
|
||||
> http://api.bilibili.com/x/web-interface/nav/stat
|
||||
> https://api.bilibili.com/x/web-interface/nav/stat
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -472,7 +472,7 @@ curl -G 'http://app.bilibili.com/x/v2/account/myinfo' \
|
||||
Cookie方式:
|
||||
|
||||
```shell
|
||||
curl 'http://api.bilibili.com/x/web-interface/nav/stat' \
|
||||
curl 'https://api.bilibili.com/x/web-interface/nav/stat' \
|
||||
-b 'SESSDATA=xxx'
|
||||
```
|
||||
|
||||
@@ -497,7 +497,7 @@ curl 'http://api.bilibili.com/x/web-interface/nav/stat' \
|
||||
APP方式:
|
||||
|
||||
```shell
|
||||
curl -G 'http://api.bilibili.com/x/web-interface/nav/stat' \
|
||||
curl -G 'https://api.bilibili.com/x/web-interface/nav/stat' \
|
||||
--data-urlencode 'access_key=d907f51122c59599d580ade2315af971'
|
||||
```
|
||||
|
||||
@@ -521,7 +521,7 @@ curl -G 'http://api.bilibili.com/x/web-interface/nav/stat' \
|
||||
|
||||
## 获取硬币数
|
||||
|
||||
> http://account.bilibili.com/site/getCoin
|
||||
> https://account.bilibili.com/site/getCoin
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -548,7 +548,7 @@ curl -G 'http://api.bilibili.com/x/web-interface/nav/stat' \
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://account.bilibili.com/site/getCoin' \
|
||||
curl 'https://account.bilibili.com/site/getCoin' \
|
||||
-b 'SESSDATA=xxx;DedeUserID=1;'
|
||||
```
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
## 查询登录记录
|
||||
|
||||
> http://api.bilibili.com/x/safecenter/login_notice
|
||||
> https://api.bilibili.com/x/safecenter/login_notice
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
查询用户`293793435`设备id为`fuck_chenrui`的登录记录
|
||||
|
||||
```shell
|
||||
curl -G 'http://api.bilibili.com/x/safecenter/login_notice' \
|
||||
curl -G 'https://api.bilibili.com/x/safecenter/login_notice' \
|
||||
--data-urlencode 'mid=293793435' \
|
||||
--data-urlencode 'buvid=fuck_chenrui' \
|
||||
-b 'SESSDATA=xxx'
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
## 获取我的信息
|
||||
|
||||
> http://api.bilibili.com/x/member/web/account
|
||||
> https://api.bilibili.com/x/member/web/account
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://api.bilibili.com/x/member/web/account' \
|
||||
curl 'https://api.bilibili.com/x/member/web/account' \
|
||||
-b 'SESSDATA=xxx'
|
||||
```
|
||||
|
||||
@@ -82,7 +82,7 @@ curl 'http://api.bilibili.com/x/member/web/account' \
|
||||
|
||||
## 查询每日奖励状态
|
||||
|
||||
> http://api.bilibili.com/x/member/web/exp/reward
|
||||
> https://api.bilibili.com/x/member/web/exp/reward
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -121,7 +121,7 @@ curl 'http://api.bilibili.com/x/member/web/account' \
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://api.bilibili.com/x/member/web/exp/reward' \
|
||||
curl 'https://api.bilibili.com/x/member/web/exp/reward' \
|
||||
-b 'SESSDATA=xxx'
|
||||
```
|
||||
|
||||
@@ -150,7 +150,7 @@ curl 'http://api.bilibili.com/x/member/web/exp/reward' \
|
||||
|
||||
## 查询每日投币获得经验数
|
||||
|
||||
>http://www.bilibili.com/plus/account/exp.php
|
||||
>https://www.bilibili.com/plus/account/exp.php
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -173,7 +173,7 @@ curl 'http://api.bilibili.com/x/member/web/exp/reward' \
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://www.bilibili.com/plus/account/exp.php' \
|
||||
curl 'https://www.bilibili.com/plus/account/exp.php' \
|
||||
-b 'SESSDATA=xxx;DedeUserID=1'
|
||||
```
|
||||
|
||||
@@ -192,7 +192,7 @@ curl 'http://www.bilibili.com/plus/account/exp.php' \
|
||||
|
||||
## 查询大会员状态
|
||||
|
||||
> http://api.bilibili.com/x/vip/web/user/info
|
||||
> https://api.bilibili.com/x/vip/web/user/info
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -223,7 +223,7 @@ curl 'http://www.bilibili.com/plus/account/exp.php' \
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://api.bilibili.com/x/vip/web/user/info' \
|
||||
curl 'https://api.bilibili.com/x/vip/web/user/info' \
|
||||
-b 'SESSDATA=xxx'
|
||||
```
|
||||
|
||||
@@ -250,7 +250,7 @@ curl 'http://api.bilibili.com/x/vip/web/user/info' \
|
||||
|
||||
## 查询账号安全情况
|
||||
|
||||
> http://passport.bilibili.com/web/site/user/info
|
||||
> https://passport.bilibili.com/web/site/user/info
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -323,7 +323,7 @@ curl 'http://api.bilibili.com/x/vip/web/user/info' \
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://passport.bilibili.com/web/site/user/info' \
|
||||
curl 'https://passport.bilibili.com/web/site/user/info' \
|
||||
-b 'SESSDATA=xxx;DedeUserID=1;'
|
||||
```
|
||||
|
||||
@@ -366,7 +366,7 @@ curl 'http://passport.bilibili.com/web/site/user/info' \
|
||||
|
||||
## 查询账号实名认证状态
|
||||
|
||||
> http://api.bilibili.com/x/member/realname/status
|
||||
> https://api.bilibili.com/x/member/realname/status
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -400,7 +400,7 @@ curl 'http://passport.bilibili.com/web/site/user/info' \
|
||||
当前状态为已认证
|
||||
|
||||
```shell
|
||||
curl 'http://api.bilibili.com/x/member/realname/status' \
|
||||
curl 'https://api.bilibili.com/x/member/realname/status' \
|
||||
-b 'SESSDATA=xxx'
|
||||
```
|
||||
|
||||
@@ -422,7 +422,7 @@ curl 'http://api.bilibili.com/x/member/realname/status' \
|
||||
|
||||
## 查询实名认证详细信息
|
||||
|
||||
> http://api.bilibili.com/x/member/realname/apply/status
|
||||
> https://api.bilibili.com/x/member/realname/apply/status
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -456,7 +456,7 @@ curl 'http://api.bilibili.com/x/member/realname/status' \
|
||||
| card_type | num | 证件类型代码 | 0:身份证<br />2:港澳居民来往内地通行证<br />3:台湾居民来往大陆通行证<br />4:护照(中国签发)<br />5:外国人永久居留证<br />6:其他国家或地区身份证明 |
|
||||
|
||||
```shell
|
||||
curl 'http://api.bilibili.com/x/member/realname/apply/status' \
|
||||
curl 'https://api.bilibili.com/x/member/realname/apply/status' \
|
||||
-b 'SESSDATA=xxx'
|
||||
```
|
||||
|
||||
@@ -482,7 +482,7 @@ curl 'http://api.bilibili.com/x/member/realname/apply/status' \
|
||||
|
||||
## 查询硬币变化情况
|
||||
|
||||
> http://api.bilibili.com/x/member/web/coin/log
|
||||
> httpsss://api.bilibili.com/x/member/web/coin/log
|
||||
|
||||
*请求方式:GET*
|
||||
|
||||
@@ -533,7 +533,7 @@ curl 'http://api.bilibili.com/x/member/realname/apply/status' \
|
||||
**示例:**
|
||||
|
||||
```shell
|
||||
curl 'http://api.bilibili.com/x/member/web/coin/log' \
|
||||
curl 'https://api.bilibili.com/x/member/web/coin/log' \
|
||||
-b 'SESSDATA=xxx'
|
||||
```
|
||||
|
||||
@@ -622,7 +622,7 @@ curl 'http://api.bilibili.com/x/member/web/coin/log' \
|
||||
|
||||
## 修改个人签名
|
||||
|
||||
> http://api.bilibili.com/x/member/web/sign/update
|
||||
> https://api.bilibili.com/x/member/web/sign/update
|
||||
|
||||
*请求方式:POST*
|
||||
|
||||
@@ -653,7 +653,7 @@ curl 'http://api.bilibili.com/x/member/web/coin/log' \
|
||||
更新个人标签为`高中技术宅一枚,爱好MC&电子&8-bit音乐&数码&编程,资深猿厨,粉丝群:1136462265`
|
||||
|
||||
```shell
|
||||
curl 'http://api.bilibili.com/x/member/web/sign/update' \
|
||||
curl 'https://api.bilibili.com/x/member/web/sign/update' \
|
||||
--data-urlencode 'user_sign=高中技术宅一枚,爱好MC&电子&8-bit音乐&数码&编程,粉丝群:1136462265' \
|
||||
--data-urlencode 'csrf=xxx' \
|
||||
-b 'SESSDATA=xxx'
|
||||
|
||||
Reference in New Issue
Block a user