mirror of
https://github.com/czp3009/bilibili-api.git
synced 2024-12-21 20:30:28 +08:00
使用接口来创建 BilibiliAPI 实例
This commit is contained in:
parent
7e31fb4900
commit
693f96f180
@ -13,7 +13,7 @@
|
||||
# 添加依赖
|
||||
## Gradle
|
||||
|
||||
compile group: 'com.hiczp', name: 'bilibili-api', version: '0.0.9'
|
||||
compile group: 'com.hiczp', name: 'bilibili-api', version: '0.0.10'
|
||||
|
||||
# 名词解释
|
||||
B站不少参数都是瞎取的, 并且不统一, 经常混用, 以下给出一些常见参数对应的含义
|
||||
|
@ -63,14 +63,14 @@ public class BilibiliAPI implements BilibiliServiceProvider, BilibiliCaptchaProv
|
||||
this.bilibiliAccount = BilibiliAccount.emptyInstance();
|
||||
}
|
||||
|
||||
public BilibiliAPI(BilibiliAccount bilibiliAccount) {
|
||||
public BilibiliAPI(BilibiliSecurityContext bilibiliSecurityContext) {
|
||||
this.bilibiliClientProperties = BilibiliClientProperties.defaultSetting();
|
||||
this.bilibiliAccount = new BilibiliAccount(bilibiliAccount);
|
||||
this.bilibiliAccount = new BilibiliAccount(bilibiliSecurityContext);
|
||||
}
|
||||
|
||||
public BilibiliAPI(BilibiliClientProperties bilibiliClientProperties, BilibiliAccount bilibiliAccount) {
|
||||
public BilibiliAPI(BilibiliClientProperties bilibiliClientProperties, BilibiliSecurityContext bilibiliSecurityContext) {
|
||||
this.bilibiliClientProperties = bilibiliClientProperties;
|
||||
this.bilibiliAccount = new BilibiliAccount(bilibiliAccount);
|
||||
this.bilibiliAccount = new BilibiliAccount(bilibiliSecurityContext);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user