Generic paginated fetcher that handles Hydra JSON-LD pagination. For most
use cases, prefer the entity-specific functions like selma_students() or
selma_enrolments().
Usage
selma_get(
con = NULL,
endpoint,
query_params = NULL,
items_per_page = 30L,
max_pages = Inf,
.progress = TRUE
)Arguments
- con
A
selma_connectionobject fromselma_connect(), orNULLto use the connection stored byselma_connect().- endpoint
API endpoint path (e.g.
"students","enrolments").- query_params
Named list of additional query parameters.
- items_per_page
Number of items per page (default 30).
- max_pages
Maximum pages to fetch (default
Inffor all).- .progress
Show progress messages via cli (default
TRUE).
Examples
if (FALSE) { # \dontrun{
selma_connect()
students <- selma_get(endpoint = "students", items_per_page = 100)
} # }
