Skip to main content

Unbind

The unbind API is used to unlink third-party channels from an Player Network account. Unlinking is restricted on LI PASS.

Request Parameter

ParameterTypeDescriptionRemark
tokenstringPlayer Network SDK user authorization token
Length: 40 bytes, see Token
Required
openidstringPlayer Network SDK unique user ID
The default value is 64-bit unsigned integer string, 32-bit string is also supported.
Required
oauth_channelidnumberChannel information of the channel that called the unbind API.
See Channel Information for more information.
Required
unbind_channelidnumberChannel information of the unlinked channel.
See Channel Information for more information.
Required

Request Sample

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

Response Parameter

ParameterTypeDescription
retnumberReturn code
0: Request success, parse related returned field information.
!=0: Request failure, check msg for the detailed return message.
msgstringReturn message
seqstringSequence number of the message in the data stream

Response Sample

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