fdo_call_API: Call football-data.org API

Description Usage Arguments Value

Description

Calls the football data.org API

Usage

1
fdo_call_API(request, token = "", response = "full")

Arguments

request

(string) url fragment that completes the address of the intended API call (required)

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.

Value

The output is converted from its JSON format to a data frame


dashee87/footballR documentation built on May 14, 2019, 6:12 p.m.