修正 readme

This commit is contained in:
czp
2017-11-07 17:06:35 +08:00
parent 25defc49af
commit 7f44dc4415

View File

@@ -40,6 +40,7 @@ LoginException 在用户名密码不匹配时抛出
BilibiliRESTAPI.logout() throws IOException, LoginException
IOException 同上
LoginException 在 accessToken 错误时抛出(过期, 或者手动设置了一个错误的值)
当 accessToken 过期时, 需要刷新 token (OAuth2 协议中的 refreshToken 操作)
@@ -47,8 +48,11 @@ LoginException 在 accessToken 错误时抛出(过期, 或者手动设置了一
BilibiliRESTAPI.refreshToken() throws IOException, LoginException
IOException 同上
LoginException 在 accessToken 和 refreshToken 不匹配时抛出(refreshToken 过期或者手动设置了错误的值)
登录过程的协议分析见我的博客 https://www.hiczp.com/post-145.html
### 普通 API
调用示例(打印一个直播间的历史弹幕)