Skip to main content

Revoke Channel Token

POST /v2/auth/revoke_channel_token

This endpoint calls the API of a social network channel to revoke the token provided by the channel.

Request parameters

For query parameters, see Query parameters.

ParameterTypeDescriptionNote
openidstringUnique user IDRequired
tokenstringtokenRequired
os_for_reqstringOperating system identifier when users log in to the game
Note: This field is only passed when users log in to the game from PC. Passes a value of 5 when a user logs in from a PC client.
Optional

Request sample

curl -sS -X POST -H 'Content-Type: application/json' 'http://test.intlgame.com/v2/auth/revoke_channel_token?channelid=15&gameid=11&os=1&sdk_version=2.0&seq=&source=1&ts=1652023735&sig=2322da29f0902173e8e4f224a991bbb4' -d '{"os_for_req":5,"openid":"5568528395","token":"7300ffa88b3163d4b2b0073be157bec1c37f6f1c.0.bd9646e9ca5779f124fb5049fb4fb457"}'  

Response parameters

ParameterTypeDescription
retintReturn code
0: success
others: failure
msgstringResponse message
seqstringSerial number of request URL

Response sample

{
"ret":0,
"msg": "success",
"seq": "1590985725-0266701833-005085-0000001160"
}