Gameroom
Store login, player list, add player, player scores, recharge and withdrawal.
- Base URL
https://agentserver.gameroom777.com/api- Authentication
- Store login, then Bearer token
- Sections
- 6
Store Login#
URL
https://agentserver.gameroom777.com/api/agent/login
Request Method
POST
Content-Type
form-data
Request Body Parameters
| Parameter name | Example value | Parameter type |
|---|---|---|
| username | aa444 | string |
| password | 123456 | string |
Response example
- Success(200)
{
"status_code": 200,
"message": "Users login succeeded",
"data": {
"userName": "aa444",
"nickname": "ab444",
"money": "1931.00",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9nYW1ldmF1bHQuY29tXC9hcGlcL2FnZW50XC9sb2dpbiIsImlhdCI6MTc1MjcyODY0OSwiZXhwIjoxNzUyNzUwMjQ5LCJuYmYiOjE3NTI3Mjg2NDksImp0aSI6IkQyaldmMXVBckNOY0NyaUUiLCJzdWIiOjUsInBydiI6ImI4YjY1YTM0YmVjZWI3YzdlNWRiYmEyMTJmNmRkZGEyNjRkMzIwYjkifQ.IgywtGjxvTild68OQRXEFpaArm2A_7_EfS4CuYYR-8Q",
"expires_time": 1752750249
}
}Get player list#
URL
https://agentserver.gameroom777.com/api/player/playerList?limit=10&page=1
Request Method
GET
Query request parameters
| Parameter name | Example value | Parameter type |
|---|---|---|
| limit | 10 | string |
| page | 1 | number |
Authentication method
Bearer Token
Add the parameter Authorization to the header, whose value is concatenated with spaces and access tokens after Bearer
Authorization: Bearer your_access_token
Response example
- Success(200)
{
"status_code": 200,
"message": "Query successful",
"count": 1,
"data": [
{
"Account": "dd001",
"nickname": "User2967938",
"AddDate": "2022-09-16 20:29:04",
"LoginCount": 154,
"lasttime": "2025-9-3 15:11:36",
"loginip": "43.231.187.162",
"account_using": 1,
"id": 13537,
"score": 0
}
]
}Add player#
URL
https://agentserver.gameroom777.com/api/player/insertPlayer
Request Method
POST
Content-Type
form-data
Request Body Parameters
| Parameter name | Example value | Parameter type |
|---|---|---|
| username | ad002 | string |
| nickname | - | string |
| password | 123456 | string |
| money | 0 | string |
Authentication method
Bearer Token
Add the parameter Authorization to the header, whose value is concatenated with spaces and access tokens after Bearer
Authorization: Bearer your_access_token
Response example
- Success(200)
{
"status_code": 200,
"message": "Insert successful",
"data": {
"account": "ad002",
"password": "123456",
"balance": "0",
"time": "2025-10-21 21:22:47"
}
}Get player scores#
URL
https://agentserver.gameroom777.com/api/player/getScore?id=13537
Request Method
GET
Query request parameters
| Parameter name | Example value | Parameter type |
|---|---|---|
| id | 13537 | string |
Authentication method
Bearer Token
Add the parameter Authorization to the header, whose value is concatenated with spaces and access tokens after Bearer
Authorization: Bearer your_access_token
Response example
- Success(200)
{
"status_code": 200,
"message": "Query successful",
"data": {
"username": "dd001",
"balance": 100,
"is_game": false
}
}Player recharge#
URL
https://agentserver.gameroom777.com/api/player/playerRecharge
Request Method
POST
Content-Type
form-data
Request Body Parameters
| Parameter name | Example value | Parameter type |
|---|---|---|
| id | 13537 | string |
| balance | 10 | string |
| remark | test | string |
Authentication method
Bearer Token
Add the parameter Authorization to the header, whose value is concatenated with spaces and access tokens after Bearer
Authorization: Bearer your_access_token
Response example
- Success(200)
{
"status_code": 200,
"message": "Recharge successful",
"data": {
"game_id": 13537,
"username": "dd001",
"balance": 1,
"remark": "test",
"time": "2025-07-16 06:34:11"
}
}- Fail(404)
{
"code": 1,
"status_code": 400,
"message": "The player is still in the game, please let him return to the game lobby!"
}Player withdrawal#
URL
https://agentserver.gameroom777.com/api/player/playerWithdraw
Request Method
POST
Content-Type
form-data
Request Body Parameters
| Parameter name | Example value | Parameter type |
|---|---|---|
| id | 13537 | string |
| balance | 15 | string |
| remark | test | string |
Authentication method
Bearer Token
Add the parameter Authorization to the header, whose value is concatenated with spaces and access tokens after Bearer
Authorization: Bearer your_access_token
Response example
- Success(200)
{
"status_code": 200,
"message": "Withdraw successful",
"data": {
"game_id": 13537,
"username": "dd001",
"balance": 85,
"remark": "test",
"time": "2025-07-16 23:02:28"
}
}