获取用户信息, 通过调用 GET /open/user/info 接口
Returns:
Source code in src/cpan115/User.py
| def get_user_info(self) -> dict:
"""获取用户信息, 通过调用 GET /open/user/info 接口
Returns:
包含用户信息
"""
if self._user_resp_cache is not None:
return self._user_resp_cache
resp = self.auth.request_json("GET", API.UserPath.USER_INFO)
self._user_resp_cache = resp
return resp
|