Inquiry Game Server
API to check game server list.
Path
Method | Path |
---|---|
POST | v1/legacy/index |
Test Case
Use below test case in development environment only.
game_code | Response Message | Description |
---|---|---|
103 | SUCCESS | Servers list return , means that user have to fill the server value on their own |
142 | SUCCESS | Fill server value accord to field value in the response |
100 | CODE NOT FOUND | Wrong code, check the code list above |
Request Body
Attributes | Type | Description | Mandatory |
---|---|---|---|
commands | String | Value: game-server-list | Yes |
username | String | Your registered phone number | Yes |
game_code | String | Game Code. See here for game_code list | Yes |
sign | String | Signature. Value: md5(username+api_key+game_code) | Yes |
{
"commands" : "game-server-list",
"username" : "123123123",
"game_code" : "103",
"sign" : "148c711ac48519014d2c361b6ebb50c2"
}
Response
Attributes | Type | Description | Mandatory |
---|---|---|---|
servers | Array | Player username | Yes |
servers.name | String | Server Name | Yes |
servers.value | String | Server ID | Yes |
status | Double | List of status 1:Success 2:Failed | Yes |
message | String | Message | Yes |
rc | String | Response code. See response code list | Yes |
{
"data": {
"servers": [
{
"name": "Test 1",
"value": "90001"
},
{
"name": "Test 2",
"value": "90002"
}
],
"status": 1,
"message": "SUCCESS",
"rc": "00",
}
}
Live Testing
Request URL
https://testprepaid.mobilepulsa.net/v1/legacy/index
Request Method
Request Header
Content-Type: application/json
Body
Result
Table of Contents