This function creates a connection object which stores parameters and a user ID if available.
fleaflicker_connect(
season = NULL,
league_id = NULL,
user_email = NULL,
user_agent = NULL,
rate_limit = TRUE,
rate_limit_number = NULL,
rate_limit_seconds = NULL,
...
)
Season to access on Fleaflicker - if missing, will guess based on system date (current year if March or later, otherwise previous year)
League ID
Optional - attempts to get user's user ID by email
User agent to self-identify (optional)
TRUE by default - turn off rate limiting with FALSE
number of calls per rate_limit_seconds
, suggested is under 1000 calls per 60 seconds
number of seconds as denominator for rate_limit
other arguments (for other methods, for R compat)
a list that stores Fleaflicker connection objects