Description Usage Arguments Details Value Examples
Queries all odds offered for a given sport, which can be filtered by league and/or event ID, and narrowed to include only live events.
1 2 3 |
sportid |
An integer giving the sport. If this is missing in interactive mode, a menu of options is presented to the user. |
leagueids |
A vector of league IDs, or |
eventids |
A vector of event IDs, or |
since |
To receive only listings updated since the last query, set
|
islive |
When |
oddsformat |
Format for the returned odds. One of |
tableformat |
One of
|
force |
Currently ignored. |
This function will raise an error if the API does not return HTTP status
OK
. For information on the possible errors, see the API documentation
for Get Odds.
A data frame of odds.
1 2 3 4 | SetCredentials("TESTAPI","APITEST")
AcceptTermsAndConditions(accepted = TRUE)
# We can run without parameters, and will be given a selection of sports
GetOdds()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.