From 710986bee54e6b0c7ae297724515c3f892964234 Mon Sep 17 00:00:00 2001 From: Will DeBerry Date: Mon, 25 Nov 2024 19:14:13 -0500 Subject: [PATCH] Add support for the wsc/game-story API endpoint (#89) --- nhlpy/api/game_center.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nhlpy/api/game_center.py b/nhlpy/api/game_center.py index f4959bc..59ee115 100644 --- a/nhlpy/api/game_center.py +++ b/nhlpy/api/game_center.py @@ -68,3 +68,11 @@ def right_rail(self, game_id: str) -> dict: :return: dict """ return self.client.get(resource=f"gamecenter/{game_id}/right-rail").json() + + def game_story(self, game_id: str) -> dict: + """ + Get game story information for the game id. GameIds can be retrieved from the schedule endpoint. + :param game_id: The game_id for the game you want the game story for. + :return: dict + """ + return self.client.get(resource=f"wsc/game-story/{game_id}").json()