football_get_standing: Map name to base URL for API

Description Usage Arguments Value

View source: R/football_get_standing.R

Description

Adding in as potentially may allow package to work over a few APIs

Usage

1
2
3
4
5
football_get_standing(
  competition_id,
  api = "football-data.org",
  api_token = Sys.getenv("API_FOOTBALL_DATA")
)

Arguments

competition_id

The ID for the competition of interest.

api

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

api_token

Your API token

Value

League standings as dataframe.


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