gamesheet_sdk.admin.games.completed module¶
Completed game operations.
- gamesheet_sdk.admin.games.completed.get_completed_game(session, season_id, game_id)[source]¶
Get a completed game with full details (JSON:API format).
Returns the full JSON:API response including rosters, goals, shots, penalties, and all related data. The supplied
Sessionmust already carry a bearer token (e.g. viaSession.set_bearer_token()); the call is otherwise unauthenticated and will 401.- Parameters:
- Returns:
The full game data as a dictionary (JSON:API format with data/included/relationships).
- Return type:
- Raises:
AuthenticationError – If the server returns 401.
GameSheetError – For any other non-2xx response, including 404 if the game is not found.
- gamesheet_sdk.admin.games.completed.download_completed_game_pdf(session, game_id, output_path)[source]¶
Download the PDF scoresheet for a completed game.
The supplied
Sessionmust already carry a bearer token (e.g. viaSession.set_bearer_token()); the call is otherwise unauthenticated and will 401.- Parameters:
- Raises:
AuthenticationError – If the server returns 401.
GameSheetError – For any other non-2xx response, including 404 if the game is not found.