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
| Parameters | Type | Description | Note |
|---|---|---|---|
| token | string | User token generated by Player Network SDK length:40 bytes, see Token for details | Required |
| openid | string | Player Network SDK unique user identifier Defaults to a 64-bit unsigned integer string, but can also support 32-bit. | Required |
| oauth_channelid | number | Initiating the unbind request's Player Network SDK authorized channel ID.See Channel ID Description for details. | Required |
| unbind_channelid | number | Non-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
| Parameters | Type | Description |
|---|---|---|
| ret | number | Return code 0: Request successful !=0: Request failed, refer to msg for detailed results |
| msg | string | Result Explanation |
| seq | string | Sequence number of the data stream message |
Response sample
{
ret: 0,
msg: "success",
seq: "1639105985-1191493130-031434-0000571640",
}