make_url_ff: Make a url for fantasy football data

Description Usage Arguments Details Value

Description

Make a url for fantasy football data.

Usage

1
2
make_url_ff(leagueId, ..., year = format(Sys.Date(), "%Y"),
  seasonId = NULL, matchupPeriodId = NULL)

Arguments

leagueId

integer or integer-like character. Required.

...

dots. Not currently used.

year

integer or integer-like character. Equivalent to 'seasonId' in the actual API. Provided as an option because it is more intuitive.

seasonId

See 'year'.

matchupPeriodId

integer or integer-like character. Code to handle a non-'NULL' value is not currently implemented.

Details

This function–as well as the other '_ff()' functions–are analogous to their 'scores' equivalent. The major difference among the analogous functions is that their is no 'league' argument to be specified (and, consequently, there are no suffixed '_[league]()' functions). Moreover, this 'make_url_ff()' functions has different possible query parameters, although the other analogous '_ff()' functions have the same arguments as their 'scores' equivalents.

Note that the league must be public in order for these '_ff()' functions to work.

Value

character representing a url.


tonyelhabr/espn2 documentation built on May 5, 2019, 3:55 p.m.