Learn R Programming

pinnacle.API (version 1.90)

GetLeagues: Get Leagues for Sport(s) by name

Description

Returns all Leagues for the Sport(s)

Usage

GetLeagues(sports, force = FALSE, regex = FALSE)

Arguments

sports
character vector of sports names.
force
Default=FALSE, boolean if TRUE force a reload of the data if FALSE use cached data
regex
Default=FALSE, boolean if TRUE , retreives sports id using regular expression on names

Value

a data frame having columns:
  • LeagueID
  • LinesAvailable
  • HomeTeam
  • AllowRoundRobin
  • LeagueName

Examples

Run this code

SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted=TRUE)
GetLeagues("Badminton")

Run the code above in your browser using DataLab