Learn R Programming

pinnacle.API (version 2.3.3)

GetLeaguesByID: Get Leagues for Sport(s) by ID

Description

Returns all Leagues for the Sport(s)

Usage

GetLeaguesByID(sportid, force = TRUE)

Arguments

sportid

integer vector of sports IDs

force

boolean whether to get new data (TRUE) or use cached data (FALSE)

Value

a data frame having columns:

  • LeagueID

  • LinesAvailable

  • HomeTeam

  • AllowRoundRobin

  • LeagueName

Examples

Run this code
# NOT RUN {
SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted=TRUE)
GetLeaguesByID(1)
# }

Run the code above in your browser using DataLab