espn_connect | R Documentation |
This function creates a connection object which stores parameters and a user ID if available.
espn_connect( season = NULL, league_id = NULL, swid = NULL, espn_s2 = NULL, user_agent = NULL, rate_limit = TRUE, rate_limit_number = NULL, rate_limit_seconds = NULL, ... )
season |
Season to access on Fleaflicker - if missing, will guess based on system date (current year if March or later, otherwise previous year) |
league_id |
League ID |
swid |
SWID parameter for accessing private leagues - see vignette for details |
espn_s2 |
ESPN_S2 parameter for accessing private leagues - see vignette for details |
user_agent |
User agent to self-identify (optional) |
rate_limit |
TRUE by default - turn off rate limiting with FALSE |
rate_limit_number |
number of calls per |
rate_limit_seconds |
number of seconds as denominator for rate_limit |
... |
other arguments (for other methods, for R compat) |
a list that stores ESPN connection objects
conn <- espn_connect( season = 2018, league_id = 1178049, espn_s2 = Sys.getenv("TAN_ESPN_S2"), swid = Sys.getenv("TAN_SWID") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.