GET
/api/game_data.php/game/get
Request:
$ curl -X GET "/api/game_data.php/game/get" \
-H "X-Api-Token: API_TOKEN"
Response:
{
"success": true,
"type": "game",
"game_id": 4,
"data": {
"text": "hello world",
"game_settings": {
"difficulty": "hard",
"max_players": 10
},
"last_updated": "2025-01-13T12:00:00Z"
}
}
PUT
/api/game_data.php/game/update
Request:
$ curl -X PUT "/api/game_data.php/game/update" \
-H "X-Api-Token: API_TOKEN" \
-H "X-Api-Private-Token: PRIVATE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"game_settings": {
"difficulty": "hard",
"max_players": 10
},
"last_updated": "2025-01-13T12:00:00Z"
}'
Response:
{
"success": true,
"message": "Game data updated successfully",
"updated_at": "2026-01-13 14:24:23"
}