Skip to contents

Supply a vector of team or league keys to the function to retrieve roster data. If a date is supplied the roster data for that date will be returned.

Usage

y_rosters(
  key = NULL,
  token_name = NULL,
  game_date = NULL,
  debug = FALSE,
  quiet = TRUE
)

Arguments

key

League key or team key as a string in the form "000.l.0000" or "000.l.0000.t.0". These keys can be found with `y_games()` and `y_teams()`.

token_name

Name used for assignment when creating token object with `y_create_token()`.

game_date

A vector of dates of fantasy season in form YYYY-MM-DD to return. Default is null and will return current date.

debug

Returns a list of data such as uri call and content. Useful for debugging.

quiet

Print function activity.

Value

A tibble.

Details

Function accepts a vector of dates.

Function is memoised