fetch_hilma_data: Fetch the data from the API

Description Usage Arguments Value

View source: R/dl.R

Description

Fetches the data given the query parameters.

Usage

1
2
3
4
5
6
7
8
9
fetch_hilma_data(
  skip,
  query,
  headers,
  verbose,
  api_url,
  n_fetch = 1000L,
  delay
)

Arguments

skip

How many notices should be skipped from the beginning. The notices are arranged by id before the skipping.

query

The query parameters. Can be constructed with query-helpers.

headers

The headers of the request. Constructed with construct_headers().

verbose

Whether to print the progress or not.

api_url

Url to the hilma_api.

n_fetch

The (maximum) number of notices to fetch. Defaults to 1000L which is the limit of the API.

delay

Delay in seconds after the query.

Value

The value-field of the result in a tibble.


hansel-oy/hilma documentation built on Feb. 20, 2020, 3:20 a.m.