dtsong / sleeper-api-wrapper

A Python API wrapper for Sleeper's API: https://docs.sleeper.app/
MIT License
70 stars 25 forks source link

Support get sport state endpoint #67

Open agrvz opened 1 month ago

agrvz commented 1 month ago

Addresses #65 - adds a function to the league module to wrap the get sport state endpoint: https://docs.sleeper.com/#get-nfl-state

get_sport_state is not part of the League class as it doesn't follow the same API path and doesn't require a league ID to call. Open to changing this if anyone strongly thinks it should be a method attached to League.

Changes: