Skip to main content

Unbind (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_channelidnumberInitiate 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 Guide 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
seqstringData Stream Message Serial Number

Response sample​

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