Create a GET request to any MFL export endpoint.
mfl_getendpoint(conn, endpoint, ...)
the list object created by mfl_connect()
a string defining which endpoint to return from the API
Arguments which will be passed as "argumentname = argument" in an HTTP query parameter
A list object containing the query, response, and parsed content.
This function will read the connection object and automatically pass in the rate-limiting, league ID (L), authentication cookie, and/or API key (APIKEY) if configured in the connection object.
The endpoint names and HTTP parameters (i.e. argument names) are CASE SENSITIVE and should be passed in exactly as displayed on the MFL API reference page.
Check out the vignette for more details and example usage.
https://api.myfantasyleague.com/2020/api_info?STATE=details
vignette("mfl_getendpoint")