05/15/2024 15:19:45

Query

I. Elite Query[Only WeChat channel supports it]

1.1 Interface name

/v2/profile/get_eliteinfo

1.2 Request parameters

Parameter Type Description
openid string [Required] The unified account's unique identifier
token string [Required] token

1.3 Return parameters

Parameter Type Description
ret int Return code; 0: correct; others: failed
msg string Detailed description of the return result
data object Including:
wx_elite (int): 0 means the user is not a WeChat elite, 1 means the user is a WeChat elite;
game_elite (int): 0 means the user is not a game elite, 1 means the user is a game elite

1.4 Request example

  • Request
{
    "openid":"5058652921602482984","token":"19_xBABCDoypXGNWsD0DS_Qp_ThLAJE8HaichHpIgT6PtWMM3-PMH-yB3KlVnyUjM8CsXjDpSu08rdKRoj-PxZ7k9Cv4AIIjZOJBN99FMG6ruM",
    "msg_id":123
}
  • Response
{
    "data":
    {
        "game_elite":0,
        "wx_elite":0
    },
    "ret":0,
    "msg":"success"
}

II. QQ Game Center's query function

It is mainly used to transmit data to the QQ Game Center interface. For example, query the status of the gift bag through the interface.

As for the QQ Game Center interface description, please refer to https://iwiki.woa.com/pages/viewpage.action?pageId=444693252 ; Please consult MSDK Assistant for the specific contact person of QQ.

2.1 Interface name

/v2/profile/game_center_query

2.2 Request parameter

parameter type description
openid string [Required] Unified account unique identifier
token string [Required] Token
interfaceid string [Required] QQ Game Center interface name (corresponding to QQ Game Center's interfaceId)
interface_param object [Required] Parameters required by QQ Game Center interface; a json object (corresponding to interfaceParam of QQ Game Center)

2.3 Return parameters

parameter type description
ret int return code; 0: success, other: failure
msg string Detailed description of the returned result
data object QQ Game Center interface's return parameter; a json object (corresponding to 'data' of QQ Game Center)

2.4 QQ Game Center interface

2.4.1 Query the gift bag status

  • Request

      curl -X POST -H 'Content-Type: application/json' 'https://hktest.itop.qq.com/v2/profile/game_center_query?channelid=2&conn=&gameid=16283&os=1&seq=1214-005&source=1&ts=1607313394&version=2.0&sig=be3b0aa27e6cc34c53fc152b5ba42741' -d '{"token":"BC47225F1F29F1954C7024BB57788CAB","openid":"493583177","interfaceid":"/trpc.gamecenter.ams_gift.ams_gift/GetAmsGiftStatus","interface_param":{"partition":0,"roleid":"2305843009707277129","areaid":9032}'
    
  • Response

      {
          "ret": 0,
          "msg": "success",
          "data": {
              "giftStatus": 0,
              "msg": "ok",
              "ret": 0
          },
          "seq": "1214-005"
      }
    



Copyright © 2024 MSDK.
All rights reserved.

results matching ""

    No results matching ""