userInfo

fun userInfo(accessToken: String, completion: (Completion<UserInfoResponse>) -> Unit)

Retrieves the currently authorized user's information.

Parameters

accessToken

The user's access token for which to retrieve the user info.

completion

The block to be called when the request is completed including either a valid userInfo or a Throwable.