You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/league.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,15 @@
1
1
# League
2
+
3
+
## League
2
4
`sleeper_wrapper.League(league_id)`
3
5
4
6
Instantiating a `League` object will allow interaction with Sleeper's [Leagues endpoint](https://docs.sleeper.com/#leagues) by pulling data for the league specified by the `league_id`. Examples for how the data is structured for methods hitting the API directly may be found in their documentation for the endpoint.
5
7
6
8
7
-
## Attributes
9
+
###Attributes
8
10
`league_id`_(Union[int, str])_: The Sleeper ID for the league. May be provided as a string or int.
9
11
10
-
## Methods
12
+
###Methods
11
13
`get_league()`: Returns the league's data.
12
14
13
15
`get_rosters()`: Retrieves the league's rosters.
@@ -62,6 +64,11 @@ no longer officially documented by Sleeper.
62
64
`get_league_name()`: Returns name of league.
63
65
64
66
67
+
## Functions
68
+
69
+
`get_sport_state()`: Returns current state for the given sport.
0 commit comments