Skip to main content

Exchange Login Channel Token

POST /v2/profile/exchange_channel_token

This endpoint enables the game to get the third party channel login token.

note

Only cached third-party channel tokens are provided. There may be discrepancies between the actual status of these tokens and the ones obtained through this interface due to factors such as expiration time differences and users canceling their authorization.

Request parameters

For query parameters, see Query parameters.

ParameterTypeDescriptionRemark
openidstringUnique user IDRequired
tokenstringPlayer Network SDK TokenRequired

Request sample

curl -X POST -H 'Content-Type: application/json' 'https://test.intlgame.com/v2/profile/exchange_channel_token?channelid=9&gameid=11&os=1&seq=&source=0&ts=1558666012&version=2.0&sig=e6b72b5ad42aaed268eae5a31b950630' -d '{"openid":"6654814801566087952","token":"91c538ff9ea265af2814f35e4e72d5032178d46f"}'

Response parameters

ParameterTypeDescription
retintReturn code
0: success
others: failure
msgstringResponse message
tokenstringThird party channel token

Response sample

{"ret":0,"msg":"success","channel_token":"xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx"}

Support Status for Different Channels

Channel IDChannel NameSupport StatusNote
1WeChatNot Supported
2QQNot Supported
3GuestNot Supported
4FacebookNot Supported
5GameCenterNot Supported
6GooglePlayNot Supported
9TwitterNot Supported
10GarenaSupported
14LINENot Supported
15AppleNot Supported
19VKNot Supported
20XboxNot Supported
21SteamNot Supported
24EpicNot Supported
26DiscordNot Supported
27PlayStation5Supported
30DMMNot Supported
32SquareEnixSupported
33SupercellNot Supported
35KakaoNot Supported
38VNGNot Supported
41Nintendo SwitchNot Supported