request_parallel: Parallel version of request

View source: R/request.R

request_parallelR Documentation

Parallel version of request

Description

Performs a GET request on each of the endpoints as specified by resource_urls.

Usage

request_parallel(
  resource_urls,
  verbose = FALSE,
  warnings = TRUE,
  progress_bar = TRUE
)

Arguments

resource_urls

Vector of endpoint URLs. Each endpoint is internally appended to the base_url. It should start with a forward slash ('/').

verbose

Whether to be verbose.

warnings

Whether to print warnings.

progress_bar

Whether to show a progress bar.

Value

A list of named lists of four elements:

url

The URL endpoint.

response_code

HTTP status code.

status

A string describing the status of the response obtained: "OK" if successful or a description the error.

content

The parsed JSON as a nested list, as returned by fromJSON.


ramiromagno/ensemblr documentation built on Oct. 19, 2023, 11:12 a.m.