ig_generic_GET: A Generic GET Function

Description Usage Note

Description

This is a function that can be used for most all endpoints of the API that return items that can be filtered with a query and typically need to be paginated. This reduces the amount of redundant code inside each unique function that pings the endpoints.

Usage

1
2
3
ig_generic_GET(relative_endpoint, query = NULL, item_accessor = NULL,
  return_df = TRUE, paginate = FALSE, page_index = 1,
  max_pages = 10, verbose = FALSE)

Note

This function is meant to be used internally. Only use when debugging.


Rinstapkg documentation built on June 8, 2019, 9:03 a.m.