Class BiliServiceImpl
java.lang.Object
cn.com.xuxiaowei.bilibili.service.impl.BiliServiceImpl
- All Implemented Interfaces:
BiliService
- Since:
- 0.0.1
- Author:
- xuxiaowei
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String clientId, String clientSecret, String code)
archiveTypeList(String clientId, String clientSecret, String accessToken)
Deprecated.接口已废弃,请勿调用,保留文档仅用于兼容查询archiveView(String clientId, String clientSecret, String accessToken, String resourceId)
archiveViewList(String clientId, String clientSecret, String accessToken, int pn, int ps, String status)
arcIncStat(String clientId, String clientSecret, String accessToken, String resourceId)
userAccountInfo(String clientId, String clientSecret, String accessToken)
userAccountScopes(String clientId, String clientSecret, String accessToken)
-
Constructor Details
-
BiliServiceImpl
public BiliServiceImpl()
-
-
Method Details
-
authorizeUrl
public String authorizeUrl(String clientId, String gourl, String state, String navhide, String callback)- Specified by:
authorizeUrl
in interfaceBiliService
- See Also:
- 构造参数并重定向至哔哩哔哩授权页面
-
accessToken
- Specified by:
accessToken
in interfaceBiliService
- See Also:
- 通过授权码获取access_token
-
userAccountScopes
public BiliUserAccountScopeVO userAccountScopes(String clientId, String clientSecret, String accessToken) throws NoSuchAlgorithmException, InvalidKeyException- Specified by:
userAccountScopes
in interfaceBiliService
- Throws:
NoSuchAlgorithmException
InvalidKeyException
- See Also:
- 查询用户已授权权限列表
-
userAccountInfo
public BiliUserAccountInfoVO userAccountInfo(String clientId, String clientSecret, String accessToken) throws NoSuchAlgorithmException, InvalidKeyException- Specified by:
userAccountInfo
in interfaceBiliService
- Throws:
NoSuchAlgorithmException
InvalidKeyException
- See Also:
- 获取已授权用户基础公开信息
-
userStat
public BiliUserStatVO userStat(String clientId, String clientSecret, String accessToken) throws NoSuchAlgorithmException, InvalidKeyException- Specified by:
userStat
in interfaceBiliService
- Throws:
NoSuchAlgorithmException
InvalidKeyException
- See Also:
- 获取用户数据
-
arcStat
public BiliArcStatVO arcStat(String clientId, String clientSecret, String accessToken, String resourceId) throws NoSuchAlgorithmException, InvalidKeyException- Specified by:
arcStat
in interfaceBiliService
- Parameters:
resourceId
- 稿件唯一ID- Throws:
NoSuchAlgorithmException
InvalidKeyException
- See Also:
- 获取单个稿件数据
-
arcIncStat
public BiliArcIncStatVO arcIncStat(String clientId, String clientSecret, String accessToken, String resourceId) throws NoSuchAlgorithmException, InvalidKeyException- Specified by:
arcIncStat
in interfaceBiliService
- Parameters:
resourceId
- 稿件唯一ID- Throws:
NoSuchAlgorithmException
InvalidKeyException
- See Also:
- 获取整体稿件增量数据
-
archiveViewList
public BiliArchiveViewVO archiveViewList(String clientId, String clientSecret, String accessToken, int pn, int ps, String status) throws NoSuchAlgorithmException, InvalidKeyException- Specified by:
archiveViewList
in interfaceBiliService
- Parameters:
pn
- 页码,最小1ps
- 每页的数量,最小1,最大50status
- 稿件状态,可选值:all(全部),is_pubing(发布中),pubed(已发布),not_pubed(未发布)。不填查询全部- Throws:
NoSuchAlgorithmException
InvalidKeyException
- See Also:
- 查询用户视频稿件列表
-
archiveTypeList
@Deprecated public BiliArchiveTypeVO archiveTypeList(String clientId, String clientSecret, String accessToken) throws NoSuchAlgorithmException, InvalidKeyExceptionDeprecated.接口已废弃,请勿调用,保留文档仅用于兼容查询- Specified by:
archiveTypeList
in interfaceBiliService
- Throws:
NoSuchAlgorithmException
InvalidKeyException
- See Also:
- 分区查询
-
archiveView
public BiliArchiveViewBO archiveView(String clientId, String clientSecret, String accessToken, String resourceId) throws NoSuchAlgorithmException, InvalidKeyException- Specified by:
archiveView
in interfaceBiliService
- Parameters:
resourceId
- 稿件唯一ID- Throws:
NoSuchAlgorithmException
InvalidKeyException
- See Also:
- 查询单一视频稿件详情
-