Skip to contents

This is a convenience method that infers and applies the correct fetch function for the input ids.

Usage

fetch(
  ids,
  ...,
  rate = 5,
  connections = 1,
  check_src = TRUE,
  db = NULL,
  basereq = NA
)

Arguments

ids

An object of type ohvbd.ids (generated from a search, manually packaged using ohvbd.ids() or generated by another function).

...

Any other arguments to be passed to the underlying fetch functions (see fetch_vt() and fetch_vd() for specific arguments).

rate

maximum number of calls to the API per second.

connections

number of simultaneous connections to the server at once. Maximum 8. Do not enable unless you really need to as this hits the server significantly harder than usual.

check_src

toggle pre-checking of source data prior to get.

db

An override for the db inferred by the data within ids. This is rarely necessary if you've used ohvbd.ids() to construct the id vector.

basereq

an httr2 request object, as generated by vb_basereq(). If NA, uses the default request.

Value

The extracted data, as an ohvbd.responses object.

Author

Francis Windram

Examples

if (FALSE) { # \dontrun{
find_vt_ids() %>% fetch()
} # }