This package was created to allow ballerina developers an easy way to interact with the Sleeper fantasy football API.
To import the entire package:
import parker/sleeper as sleeper;
To import a specific module:
import parker/sleeper.drafts as drafts;
Available modules include drafts, leagues, players, and users.
Available methods include:
- getAllDraftsForUser
- getAllDraftsForLeague
- getDraftById
- getDraftPicks
- getTradedDraftPicks
Available methods include:
- getAllLeaguesForUser
- getLeagueById
- getRostersForLeague
- getUsersInLeague
- getMatchupsForLeague
- getWinnersBracketForLeague
- getLosersBracketForLeague
- getLosersBracketForLeague
- getTradedPicksForLeague
- getNflState
Available methods include:
- getAllPlayers
- getTrendingPlayers
Available methods include:
- getUserByUsername
- getUserById