Description Usage Arguments Value Examples
Returns all fixtures for a specific competition from the football-data.org API
1 2 | fdo_listCompFixtures(id, timeFrame = "", matchDay = "", token = "",
response = "full")
|
id |
(sting) The id (e.g. "436") of the competition. Requried. No default. |
timeFrame |
(string) The value of the timeFrame argument must start with either p(ast) or n(ext), representing a timeframe either in the past or future. It is followed by a number in the range 1-99. For example, p6 would return all fixtures in the last 6 days, whereas n23 would result in returning all fixtures in the next 23 days. Optional. Default is the empty string, which returns all fixtures, irrespective of date. |
matchDay |
(string) The matchday to which the fixtures relate (e.g. "3"). Optional. Default is "", which returns all matchDays. Note that a non-empty string matchDay value will override the timeFrame value. |
token |
(string) football data.org API token. Optional but it's recommended that you acquire an API token. It allows the owner to document API activity. See http://api.football-data.org/register for more details. |
response |
(string). Determine the structure of the response. Default is "full" and "minified" will remove some meta inforation and thus return a smaller data frame. Finally, "compressed" is only supported by the fixture resource. |
A data frame converted from the JSON format is returned.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# league id for Ligue 1 2015/16 is 434
# all fixtures in the Ligue 1 2015/16 season
fdo_listCompFixtures("434")
# Ligue 1 fixtures in the next 10 days
fdo_listCompFixtures("434",timeFrame="n10")
# Ligue 1 fixtures from the previous 10 days
fdo_listCompFixtures("434",timeFrame="p10")
# Ligue 1 fixtures for match day 10
fdo_listCompFixtures("434",matchDay="10")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.