File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ service AccountService {
1313 get : "/arcopen/fn/user/account/info" ,
1414 };
1515 }
16+ // 查询用户已授权权限列表 https://openhome.bilibili.com/doc/4/08f935c5-29f1-e646-85a3-0b11c2830558
17+ rpc GetAccountScopes (GetAccountScopesReq ) returns (GetAccountScopesRes ) {
18+ option (google.api.http ) = {
19+ get : "/arcopen/fn/user/account/scopes" ,
20+ body : "*" ,
21+ };
22+ }
1623}
1724
1825message GetAccountInfoReq {
@@ -30,4 +37,20 @@ message GetAccountInfoRes {
3037 string openid = 3 ;
3138 }
3239 Data data = 10 ;
40+ }
41+
42+ message GetAccountScopesReq {
43+ string client_id = 1 ;
44+ string access_token = 2 ;
45+ }
46+
47+ message GetAccountScopesRes {
48+ int32 code = 1 ;
49+ string message = 2 ;
50+ int32 ttl = 3 ;
51+ message Data {
52+ string openid = 1 ;
53+ repeated string scopes = 2 ;
54+ }
55+ Data data = 10 ;
3356}
You can’t perform that action at this time.
0 commit comments