ffl_api | R Documentation |
Use httr::GET()
to make a request to the ESPN API and return the parsed
list from the JSON data. The function uses httr::RETRY()
, so the call will
repeat up to three times if there is a failure.
ffl_api(
leagueId = ffl_id(),
view = NULL,
leagueHistory = FALSE,
seasonId = 2023,
scoringPeriodId = NULL,
...
)
leagueId |
Numeric league ID or ESPN fantasy page URL. Defaults to
|
view |
Character vector of specific API "views" which describe the data returned (e.g., "mRoster", "mSettings"). |
leagueHistory |
logical; Should the |
seasonId |
Integer year of NFL season. By default, the season is
currently set to 2023. Use a recent year or set |
scoringPeriodId |
Integer week of NFL season. By default, |
... |
Additional queries passed to |
A single JSON string.
## Not run:
ffl_api()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.