Skip to content
Joost Sijm edited this page Jan 25, 2019 · 2 revisions

Welcome to the supremacy1914_wrapper wiki!

The data from the Supremacy 1914 API is split up between different states based on a number.

State Description
All data
1 Players
2 Score and coaltions
4 Market
5 Relations
12 Game information

Functions

Function return data from supremacy as received.

all()

Returns all

game()

Returns game information

coalitions()

Returns players

players()

Returns players

score(int day)

Returns score

relations()

Returns relations

Exceptions

GameDoesNotExistError

Is raised when a game doesn't exist. Whenever a game is finished it disappears from the server and this error is raised.

ServerChangeError

The API server randomly changes its server URL. New URL can be found in exception message.