powered by
Returns all Leagues for the Sport(s)
GetLeaguesByID(sportid, force = TRUE)
integer vector of sports IDs
boolean whether to get new data (TRUE) or use cached data (FALSE)
a data frame having columns:
LeagueID
LinesAvailable
HomeTeam
AllowRoundRobin
LeagueName
# NOT RUN { SetCredentials("TESTAPI","APITEST") AcceptTermsAndConditions(accepted=TRUE) GetLeaguesByID(1) # }
Run the code above in your browser using DataLab