mirror of
https://github.com/SocialSisterYi/bilibili-API-collect.git
synced 2025-03-13 18:00:11 +08:00
* fix(search/search_request.md): cookie buvid3 * feat(login/login_action/password.md): more sms desc * fix: typo * feat(live/info.md): add ps for getRoomBaseInfo * fix(danmaku/action.md): broken form * chore: Browserslist: caniuse-lite is outdated * feat(comment/list.md): reply/wbi/main param next * feat(misc/buvid3_4.md): get buvid3 only * fix: broken links & wrong code type * feat: close all img & br tags * feat(login/cookie_refresh.md): missing demo links * feat(dynamic/detail.md): /lottery_svr/v1/lottery_svr/lottery_notice * fix(video/action.md): share cookie buvid3 * feat: deprecated stat & attribute * feat(dynamic/detail.md): reaction * feat(misc/sign/v_voucher.md): header * feat(dynamic/detail.md): update detail params & example * feat(APP_widget/ver.md): /x/v2/version * feat(video/info.md): update view * feat(docs/user.md): remove channel * feat(search/search_request.md): search/type -1200 * feat(user/space.md): audio * feat(video/player.md): /x/player/wbi/v2 * feat(audio/musicstream_url.md): update web/url * feat(comment/readme.md): state * fix(user/medal.md): wrong guard_level desc * feat(live/message_stream.md): DANMU_MSG * fix(user/medals): wrong guard_level & guard_icon desc * feat(live/message_stream.md): format & add more 'cmd' * feat(live/message_stream.md): add more 'cmd' * feat(live/message_stream.md): add tips for non-login users * feat(video/player.md): need_login_subtitle --------- Co-authored-by: 社会易姐QwQ <45892418+SocialSisterYi@users.noreply.github.com>
3.6 KiB
3.6 KiB
用户注册
人机验证
完成后得到key
, challenge
, validate
, seccode
四个参数
发送短信验证码
注意不同的是这里type=1而非21,推测此参数决定短信内容
curl 'https://passport.bilibili.com/web/sms/general/v2/send' \
--data-urlencode 'key=6eeb28e7bbd64b389da2be3a2778c7e3' \
--data-urlencode 'captchaType=6' \
--data-urlencode 'type=1' \
--data-urlencode 'cid=1' \
--data-urlencode 'tel=13888888888' \
--data-urlencode 'challenge=c52148f88a28b6011db52bb213483ee8' \
--data-urlencode 'validate=a98841cd6ea58e1b1f5783fca73cddb6' \
--data-urlencode 'seccode=a98841cd6ea58e1b1f5783fca73cddb6|jordan'
查看示例
{
"code": 0,
"message": "验证码短信已下发"
}
提交注册请求
请求方式:POST
正文参数( application/x-www-form-urlencoded ):
参数名 | 类型 | 内容 | 必要性 | 备注 |
---|---|---|---|---|
cid | num | 国际冠字码 | 必要 | 可以从 获取国际冠字码 接口中获取 |
tel | num | 手机号码 | 必要 | |
code | num | 短信验证码 | 必要 | |
nickName | str | 昵称 | 必要 | |
pwd | str | 密码 | 必要 | 密码为明文 |
plat | num | 0 | 必要 | 平台? |
gourl | str | 注册成功跳转地址 | 非必要 | 默认为主页https://www.bilibili.com/ |
json回复:
根对象:
字段 | 类型 | 内容 | 备注 |
---|---|---|---|
code | num | 返回值 | 0:成功 1005:验证码错误 1007:验证码过期 |
message | str | 错误信息 | 成功时无此字段 |
data | obj | 信息本体 | 只在成功时存在 |
data
对象:
字段 | 类型 | 内容 | 备注 |
---|---|---|---|
redirectUrl | str | 跳转链接 | |
hint | str | "注册成功" | 成功后不提示成功还能提示什么? |
in_reg_audit | num | (?) |
curl 'https://passport.bilibili.com/web/reg/tel' \
--data-urlencode 'plat=0' \
--data-urlencode 'cid=1' \
--data-urlencode 'tel=13888888888' \
--data-urlencode 'code=121314' \
--data-urlencode 'nickName=萌系小妹纸わ'
--data-urlencode 'pwd=Password1234' \
--data-urlencode 'gourl=https://www.bilibili.com'
查看示例
{
"code": 0,
"data": {
"redirectUrl": "https://www.bilibili.com",
"hint": "注册成功",
"in_reg_audit": 0
}
}