Top-up Package Control Query API
Interface Address
https://xxx.gamepartner.com/product
*Note: The URL is defined by the original manufacturer, and no rules have been set. Both parties need to agree upon them when connecting.*
Request Parameters
| Field Name | Type | Required | Description |
|---|---|---|---|
| roleid | string | Yes | Character ID |
| servercode | string | Yes | Server code |
| timestamp | long | Yes | Timestamp |
| signature | string | Yes | Verification code, md5(roleid + servercode + timestamp + "key") ; key=R$o)L3e##^b (e.g., 8–32 characters consisting of uppercase and lowercase letters or digits, with no special characters) |
Request Method
The request URL must support both POST and GET methods. POST is recommended. The default content type is application/x-www-form-urlencoded.
Request Example
Response Result
*Note: Returns in JSON format. If there are other types of codes, please define and provide an explanation.*
| Field Name | Type | Description |
|---|---|---|
| code | string | Status code for receiving push request, specific codes are as follows: ; 1000 = Gift pack query successful, see productList for specific gift pack information ; 9999 or others = Query failed or system exception |
| message | string | Success or error message description |
| productList | jsonarray | List of gift packs that the specific character ID can purchase |
Default Method Response Example
json
{"code":"1000","message":"Success","productList":["A50","A100","A200"]}Method with Transmission Parameters Response Example
proItemId: Item ID name: Item name arg: Transmission parameter
json
{"code":"1000","message":"Success","productList":[{"proItemId":"A50","name":"Jade Ingots 50","arg":"xxxxxxxxxxxxxxx1"},{"proItemId":"A100","name":"Jade Ingots 100","arg":"xxxxxxxxxxxxxxx2"}]}