getServiceToken

fun getServiceToken(userToken: String): XboxLiveToken

Exchanges an Xbox Live user token for a service token.

Return

a service token for the token owner.

See also

Parameters

userToken

An Xbox Live user token.

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.