Make an API request with retries
query(
base,
path,
method = c("GET", "POST", "PUT", "DELETE"),
params = list(),
body = NULL,
config = config(),
retry = method == "GET",
retries = 0
)
URL
string
HTTP request method
URL parameters provided as a list
body of the request
httr::config
allow retrying the query on failure
internal counter of previous retries
raw object returned by httr