fetch User Profile
Fetches a public user profile from GET /api/v1/users/{userId}/profile.
Returns the user's public biographical details, public applications, and recent public comments.
Return
PublicUserProfileResult containing the user profile, associated apps, and comments.
Parameters
user Id
Unique user identifier (e.g., Clerk user account ID).
Throws
on HTTP 404 if the user profile does not exist.
on network or parsing failure.
Example:
val userProfile = client.fetchUserProfile("user_clerk_123")
println("User: ${userProfile.profile.displayName}")
println("Bio: ${userProfile.profile.bio}")
println("Apps count: ${userProfile.apps.size}")Content copied to clipboard