Description Usage Arguments Value Examples
Returns all fixtures for a specific team from the football-data.org API
1 2 | fdo_listTeamFixtures(id, season = "", timeFrame = "", venue = "",
token = "", response = "full")
|
id |
(sting) The id (e.g. "77") of the team Requried. No default. |
season |
(sting) The season (e.g. "2015") to which the competitions relate. Note that the convention is to take the starting year to indicate the season. For example, "2015/2016" is represented by "2015". Optional. Defaults to the current season. |
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 for the current season. |
venue |
(sting) Determines whether home, away or all fixtures are returned. Possible values are "home", "away" and "". Optional. Default is "", which means all fixtures are returned. |
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:
# team id for Athletic Bilbao is 77
# all Athletic Bilbao fixtures in the current (2016/17) season
fdo_listTeamFixtures("77")
# all Athletic Bilbao fixtures in 2015/16 season
fdo_listTeamFixtures("77",season = "2015")
# all Athletic Bilbao fixtures in the next 10 days
fdo_listTeamFixtures("77",timeFrame="n10")
# all Athletic Bilbao home fixtures in the next 10 days
fdo_listTeamFixtures("77",timeFrame = "n10", venue = "home")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.