mfl_connect | R Documentation |
This function creates a connection object which stores parameters and gets a login-cookie if available
mfl_connect( season = NULL, league_id = NULL, APIKEY = NULL, user_name = NULL, password = NULL, user_agent = NULL, rate_limit = TRUE, rate_limit_number = NULL, rate_limit_seconds = NULL, ... )
season |
Season to access on MFL - if missing, will guess based on system date (current year if March or later, otherwise previous year) |
league_id |
league_id Numeric ID parameter for each league, typically found in the URL |
APIKEY |
APIKEY - optional - allows access to private leagues. Key is unique for each league and accessible from Developer's API page (currently assuming one league at a time) |
user_name |
MFL user_name - optional - when supplied in conjunction with a password, will attempt to retrieve authentication token |
password |
MFL password - optional - when supplied in conjunction with user_name, will attempt to retrieve authentication token |
user_agent |
A string representing the user agent to be used to identify calls - may find improved rate_limits if verified token |
rate_limit |
TRUE by default, pass FALSE to turn off rate limiting |
rate_limit_number |
number of calls per |
rate_limit_seconds |
number of seconds as denominator for rate_limit |
... |
silently swallows up unused arguments |
a connection object to be used with ff_*
functions
mfl_connect(season = 2020, league_id = 54040) mfl_connect(season = 2019, league_id = 54040, rate_limit = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.