Learn R Programming

pinnacle.API (version 2.3.3)

GetLeagues: Get Leagues for Sport(s) by name

Description

Returns all Leagues for the Sport(s)

Usage

GetLeagues(sports, force = TRUE, 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
# NOT RUN {
SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted=TRUE)
GetLeagues("Badminton")
# }

Run the code above in your browser using DataLab