getUserProfile

suspend fun getUserProfile(username: String): UserProfile

获取用户资料公开信息。

Return

用户资料公开信息对象

Parameters

username

目标用户的用户名(不区分大小写)

Throws

NetworkException

网络连接失败或超时

AuthenticationException

认证凭证缺失或无效

NotFoundException

指定用户名的用户不存在