powered by
Returns all Leagues for the Sport(s)
GetLeagues(sports, force = TRUE, regex = FALSE)
character vector of sports names.
Default=FALSE, boolean if TRUE force a reload of the data if FALSE use cached data
Default=FALSE, boolean if TRUE , retreives sports id using regular expression on names
a data frame having columns:
LeagueID
LinesAvailable
HomeTeam
AllowRoundRobin
LeagueName
# NOT RUN { SetCredentials("TESTAPI","APITEST") AcceptTermsAndConditions(accepted=TRUE) GetLeagues("Badminton") # }
Run the code above in your browser using DataLab