Description Usage Arguments Value Examples
Returns list of competitions from the football-data.org API
1 | fdo_listComps(season = "", token = "", response = "full")
|
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". Defaults to the current season. |
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 | ## Not run:
# defaults to current season
fdo_listComps()
# get list of 2015 competitions without metadata
fdo_listComps("2015",response = "minified")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.