query_obis: Query the api for the complete datasets

Description Usage Arguments Value

View source: R/fetch.R

Description

Query the api for the complete datasets

Usage

1
2
3
4
5
6
7
8
query_obis(
  uri = "https://api.obis.org/export?complete=true",
  data_uri = "https://obis-datasets.ams3.digitaloceanspaces.com",
  what = c("recent", "all")[1],
  source_fmt = c("csv", "parquet")[2],
  useragent = httr::user_agent(get_useragent()),
  form = c("list", "path")[2]
)

Arguments

uri

character, the URL to query

data_uri

character, the root URL to where data resides

what

character, one of 'recent' (default) or 'all'. OBIS returns list of all posted complete datasets, so this just get the the most recent.

source_fmt

as of Oct 2021 the choices are "csv" or "parquet" If you don't choose one or the other than what is applied to the jumble.

useragent

character the identity of the user

form

character, either "path" or "list" to determine the returned value format

Value

the URL to the requested data


BigelowLab/fullobis documentation built on Dec. 17, 2021, 10:51 a.m.