api_request: The very general wrapper from EpiGraphDB endpoint request

Description Usage Arguments

View source: R/request_and_response.R

Description

The very general wrapper from EpiGraphDB endpoint request

Usage

1
2
3
4
5
6
7
8
9
api_request(
  route,
  params,
  mode = c("table", "raw"),
  method = api_get_request,
  retry_times,
  retry_pause_min,
  call = sys.call(-1)
)

Arguments

route

An EpiGraphDB API endpoint route, e.g. "/mr"

params

A list of parameters to send

mode

Either "table" (returns tibble) or "raw" (returns raw response parsed from json to R list).

method

A specific request handler, e.g. epi_get_request

call

The function call to identify the original function when things go wrong


epigraphdb documentation built on March 29, 2021, 5:11 p.m.