mfl_getendpoint {ffscrapr} | R Documentation |
GET any MFL endpoint
Description
Create a GET request to any MFL export endpoint.
Usage
mfl_getendpoint(conn, endpoint, ...)
Arguments
conn |
the list object created by |
endpoint |
a string defining which endpoint to return from the API |
... |
Arguments which will be passed as "argumentname = argument" in an HTTP query parameter |
Details
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.
Value
A list object containing the query, response, and parsed content.
See Also
https://api.myfantasyleague.com/2020/api_info?STATE=details
vignette("mfl_getendpoint")