Skip to main content

Unbind

The unbind API is used to remove bindings from third-party channels associated with a Player Network account.LI PASS prohibits unbind.

Request parameters

ParametersTypeDescriptionNote
tokenstringUser token generated by Player Network SDK
length:40 bytes, see Token for details
Required
openidstringPlayer Network SDK unique user identifier
Defaults to a 64-bit unsigned integer string, but can also support 32-bit.
Required
oauth_channelidnumberInitiating the unbind request's Player Network SDK authorized channel ID.
See Channel ID Description for details.
Required
unbind_channelidnumberNon-binding channel information.
See Channel Information Description for details.
Required

Request sample

accountApi.unbind({
openid:'xxx',
token:'xxxx',
oauth_channelid:4,
unbind_channelid:9,
}).then(
(res) => {
console.log(res);
}
);

Response parameters

ParametersTypeDescription
retnumberReturn code
0: Request successful
!=0: Request failed, refer to msg for detailed results
msgstringResult Explanation
seqstringSequence number of the data stream message

Response sample

{
ret: 0,
msg: "success",
seq: "1639105985-1191493130-031434-0000571640",
}