Skip to main content

Unmap

The unmap API is used to dissociate third-party accounts from the custom account.

Request Parameter

ParameterTypeDescriptionRemark
tokenstringUser authorization token for custom account
Length: 40 bytes, see Token
Required
openidstringCustom account UIDRequired
unmap_channelidnumberChannel ID of the unmapped channel
For more information, see Login Channel and ChannelID Relationship.
Required

Request Sample

accountApi.unmap({
token:'vOrEZi@nAJ8CZICmY...WS7JMEu7Phiu_r7HfcHuQ==',
openid:'49...91',
unmap_channelid:28
}).then(
(res) => {
console.log(res);
}
);

Response Parameter

ParameterTypeDescription
retnumberReturn code
0: Request success
!=0: Request failure, see msg for 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",
}