Verify idp_user_id
which is the response result of Web Login Verification V2 API and returns the PlayerID of this IdP ID. You can get the PlayerID after a user signs in with Web Login V2 API.
- Request URL
Commercial Server URL https://auth.qpyou.cn/server/player/get-idp-playerid Distributed Environment URL https://auth.globalwithhive.com/server/player/get-idp-playerid Sandbox URL https://sandbox-auth.qpyou.cn/server/player/get-idp-playerid HTTP Method Post Content-Type application/json Data Format JSON
- Request Header
Field Name Description Type Required ISCRYPT Encrypted data, 0=Not encrypted Integer Y
- Request Body
Field Name Description Type Required appid the AppID of the game a user is logged into String Y idp_user_id Account Token (uid) passed from IdP String Y idp_index - idp_index
- 1: HIVE
- 2: Facebook
- 3: GOOGLE
- 9: APPLE
String Y
- Request Body Example
12345{"idp_user_id": "68101398","appid" : "com.com2us.hivesdk.normal.freefull.google.global.android.common","idp_index" : "1"}
- Response Body
Field Name Description Type result_code verification result, 0: success, 4000: the parameter value is invalid Integer result_msg the result message String data the result data JSON
- Response Body –
data
Field Name Description Type data.list the result data list Array data.list.player_id the PlayerID of the idp_user_id
String data.list.idp_user_id the idp_user_id
you provided in the request bodyString data.list.idp_index the idp_index
you provided in the request bodyString
- Response Body Sample
123456789101112131415161718{"result_code": 0,"result_msg": "SUCCESS","data": {"list": [{"player_id": "20000016588","idp_user_id": "68101398","idp_index": "1"},{"player_id": "20000016588","idp_user_id": "0","idp_index": "0"}]}}