Skip to content

Commit 970782c

Browse files
committed
Add API endpoint handler for fetching active network boosters
1 parent bebdbc5 commit 970782c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,9 @@ def get_bingo_event(self) -> dict:
177177
api_request = requests.get("https://api.hypixel.net/resources/skyblock/bingo").content
178178
bingo_data = parse(api_request)
179179
return bingo_data
180+
181+
def get_active_network_boosters(self):
182+
"""Returns a `dict` of all of the active network boosters."""
183+
api_request = requests.get(f"https://api.hypixel.net/boosters?key={self.api_key}").content
184+
boosters_data = parse(api_request)
185+
return boosters_data

0 commit comments

Comments
 (0)