From 0e27b70676c01d0ffd7d213af555d6037020694c Mon Sep 17 00:00:00 2001 From: snipe <72265661+notsniped@users.noreply.github.com> Date: Thu, 5 Jan 2023 09:35:14 +0530 Subject: [PATCH] Add API endpoint for getting Skyblock bingo event and goals data --- api.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api.py b/api.py index 10e3aef..f3e0639 100644 --- a/api.py +++ b/api.py @@ -100,3 +100,11 @@ def get_current_election(self) -> dict: election_info = json.loads(api_request) del election_info["mayor"] return election_info + + def get_bingo_event(self) -> dict: + """ + Returns a `dict` of information regarding the current bingo event and goals in Skyblock. + """ + api_request = requests.get("https://api.hypixel.net/resources/skyblock/bingo").content + bingo_data = json.loads(api_request) + return bingo_data