Supported server languages for filtering games.
Fetches advanced game details based on state and state-specific options.
The unique identifier for the game.
The state ID to fetch. Defaults to 0 which equals all.
Additional state option. Optional.
A promise resolving to the game details or an error if the game is not found.
Fetches all newspapers for a game (stateID 2).
The unique identifier for the game.
A promise resolving to all the game newspapers or an error if the game is not found.
Fetches the newspaper for a specific day in the game (stateID 2).
The unique identifier for the game.
The day to fetch the newspaper for.
A promise resolving to the game newspaper or an error if the game is not found.
Fetches original game overview. This call takes exceedingly longer, which is why getOverview was created.
The unique identifier for the game.
A promise resolving to the game overview.
Searches for games based on various filters.
Number of entries to fetch (min 5, max 50). Defaults to 10.
The page number to fetch. Defaults to 0.
Language filter. Defaults to "en".
Search string for filtering. Optional.
Scenario ID for filtering. Optional.
A promise resolving to the search results.
The GameApi class provides methods to interact with a game's server. It supports operations like retrieving game tokens, searching for games, and fetching game details.