Unmapping (Unmap)
The unmap API is used to detach third-party accounts from self-built accounts.
Request parameters
| Parameters | Type | Description | Note |
|---|---|---|---|
| token | string | Custom account authorization token Length: 40 bytes, see Token | Required |
| openid | string | UID of self-managed account | Required |
| unmap_channelid | number | Channel ID of unmapped channel For more information, see Login Channel and Channel ID Relationship. | Required |
Request sample
accountApi.unmap({
token:'vOrEZi@nAJ8CZICmY...WS7JMEu7Phiu_r7HfcHuQ==',
openid:'49...91',
unmap_channelid:28
}).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",
}