Learn R Programming

hoopR (version 3.1.0)

.cbbd_get: Internal: perform a GET against the CollegeBasketballData API

Description

Attaches the Authorization: Bearer <CBBD_API_KEY> header, routes through hoopR's shared .retry_request() (which handles retries, timeouts and proxy resolution), and parses the JSON body. NULL query values are dropped automatically by httr2::req_url_query(), so optional parameters can be threaded through unconditionally.

Usage

.cbbd_get(path, query = list())

Value

The parsed JSON body (a data.frame for list endpoints).

Arguments

path

Endpoint path beginning with / (e.g. "/teams").

query

Named list of query parameters. NULL elements are omitted.