PHP Promised Bilibili Android API
require 'BilibiliApi.php';
$api = new BiliApi();
$account = [
'username' => 'x',
'password' => 'x',
];
$api->login($account);
{"code": 0,
"message": "access_token获取成功.",
"data": {
"mid": 41330000,
"access_token": "d0fd97086xxxxxxxxxxxxxxxx",
"refresh_token": "1da5bc92xxxxxxxxxxxxxx",
"expires_in": 25920000
}
}
- $api->login(); //登陆
- $api->accToCookie(); //access_token转cookie
- $api->getCapcha(); //获取验证码
- $api->loginWithCaptcha(); //验证码登陆
- 验证码登陆接口(进行中)
- 待定
End.