espn_getendpoint_raw: GET ESPN endpoint (raw)

View source: R/espn_api.R

espn_getendpoint_rawR Documentation

GET ESPN endpoint (raw)

Description

This function is the lower-level function that powers the API call: it takes a URL and headers and executes the http request with rate-limiting and authentication. It checks for JSON return and any warnings/errors, parses the json, and returns an espn_api object with the parsed content, the raw response, and the actual query.

Usage

espn_getendpoint_raw(conn, url_query, ...)

Arguments

conn

a connection object created by ff_connect or equivalent - used for authentication

url_query

a fully-formed URL to call

...

any headers or other httr request objects to pass along

Value

object of class espn_api with parsed content, request, and response

See Also

espn_getendpoint() - a higher level wrapper that checks JSON and prepares the url query

vignette("espn_getendpoint")


ffscrapr documentation built on Feb. 16, 2023, 10:55 p.m.