Learn R Programming

pinnacle.API (version 1.90)

GetLeaguesByID: Get Leagues for Sport(s) by ID

Description

Returns all Leagues for the Sport(s)

Usage

GetLeaguesByID(sportid, force = FALSE)

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

SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted=TRUE)
GetLeaguesByID(1)

Run the code above in your browser using DataLab