getUserToken

fun getUserToken(accessToken: String): XboxLiveToken

Exchanges a Microsoft access token for an Xbox Live user token.

Return

credentials for the Xbox Live user.

See also

Parameters

accessToken

A Microsoft access token, received from authentication.

Throws

if Xbox Live returns a malformed or incomplete response body.

if Xbox Live returns a status code that isn't between 200 and 299, both included.