Skip to main content

Get Third-Party Channel Token

POST /v2/profile/exchange_channel_token

This interface enables games to obtain login tokens from third-party channels.

note

Only provides cache of third-party channel tokens.The third-party channel tokens obtained through this interface may differ from the actual token status due to scenarios like expiration or user authorization cancellation.

Request parameters

For the query parameters for interface calls, see Query Parameters.

ParametersTypeDescriptionNotes
openidstringPlayer Network SDK user identificationRequired
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"}'

Return Parameters

ParametersTypeDescription
retintReturn Code
0: Success
Others: Failure
msgstringDetailed information of the result
tokenstringThird-party channel token

Return Sample

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

Channel Support

Channel IDChannel NameSupportNotes
1WeChatNot supported
2QQNot supported
3GuestNot supported
4FacebookNot supported
5GameCenterNot supported
6GooglePlayNot supported
9XNot 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