Internal Function for Core BrAPI GET Calls
Fetches data from an API endpoint, handles pagination by retrieving all pages, and consolidates the results into a single data frame.
brapi_get_call(call_url, nested = TRUE)
call_url
: Character string specifying the base URL of the API endpoint to request.nested
: Logical value indicating whether to flatten nested lists in the JSON responses. Defaults to TRUE
.A list containing the consolidated data and associated metadata from the API response.
This function performs the following steps:
get_async_pages()
.It relies on global variables from qbms_globals
to manage state and configuration.
Khaled Al-Shamaa, k.el-shamaa@cgiar.org