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.
| Parameters | Type | Description | Notes |
|---|---|---|---|
| openid | string | Player Network SDK user identification | Required |
| token | string | Player Network SDK Token | Required |
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
| Parameters | Type | Description |
|---|---|---|
| ret | int | Return Code 0: Success Others: Failure |
| msg | string | Detailed information of the result |
| token | string | Third-party channel token |
Return Sample
{"ret":0,"msg":"success","channel_token":"xxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx"}
Channel Support
| Channel ID | Channel Name | Support | Notes |
|---|---|---|---|
| 1 | Not supported | ||
| 2 | Not supported | ||
| 3 | Guest | Not supported | |
| 4 | Not supported | ||
| 5 | GameCenter | Not supported | |
| 6 | GooglePlay | Not supported | |
| 9 | X | Not supported | |
| 10 | Garena | Supported | |
| 14 | LINE | Not supported | |
| 15 | Apple | Not supported | |
| 19 | VK | Not supported | |
| 20 | Xbox | Not supported | |
| 21 | Steam | Not supported | |
| 24 | Epic | Not supported | |
| 26 | Discord | Not supported | |
| 27 | PlayStation5 | Supported | |
| 30 | DMM | Not supported | |
| 32 | SquareEnix | Supported | |
| 33 | Supercell | Not supported | |
| 35 | Kakao | Not supported | |
| 38 | VNG | Not supported | |
| 41 | Nintendo Switch | Not supported |