Python SDK — Game Data

Game Data — client.games / client.players

games.get_data
client.games.get_data(data_cls: type | None = None) -> GameDataResponse

Retrieves global game data. Pass a dataclass as data_cls for typed data.

games.update_data
client.games.update_data(data: Any) -> SuccessResponse

Updates global game data (requires private API token).

players.get_data
client.players.get_data(player_token: str, data_cls: type | None = None) -> PlayerDataResponse

Retrieves a specific player's data using their authentication token.

players.update_data
client.players.update_data(player_token: str, data: Any) -> SuccessResponse

Updates a specific player's data (level, score, inventory, ...).