Skip to contents

Create a GET request to any MFL export endpoint.

Usage

mfl_getendpoint(conn, endpoint, ...)

Arguments

conn

the list object created by mfl_connect()

endpoint

a string defining which endpoint to return from the API

...

Arguments which will be passed as "argumentname = argument" in an HTTP query parameter

Value

A list object containing the query, response, and parsed content.

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.