Call API endpoint.

wef_call(url, pages = 1, n = 25, quiet = !interactive(),
  sleep = 0.5)

Arguments

url

URL to call.

pages

Number of pages to retrieve.

n

Number of results per page.

quiet

If FALSE prints useful information to the console.

sleep

Pause in seconds to mark between each API call (pages).

Value

A list.

Examples

acc <- wef_sf_accounts() rand_acc <- sample(acc[[1]]$attributes$api_endpoint, 1) data <- wef_call(rand_acc)