football_pull: Internal function that does the pull

Description Usage Arguments Value Examples

View source: R/football_pull.R

Description

Adding in as potentially may allow package to work over a few APIs, and this step is done over multiple functions.

Usage

1
2
3
4
5
football_pull(
  api = "football-data.org",
  api_endpoint = "/competitions/",
  api_token = Sys.getenv("API_FOOTBALL_DATA")
)

Arguments

api

Name of API. Currently has "football-data.org"

api_endpoint

Which API are you using.

api_token

The API token.

Value

Base url for API

Examples

1
2
# Will error as no API token
FootballData:::football_api_url("football-data.org")

epijim/FootballData documentation built on March 3, 2021, 11:52 p.m.