search_catalog: search_catalog

Description Usage Arguments Value

View source: R/search_catalog.R

Description

Helper function to search the DDH data catalog

Usage

1
2
3
4
5
6
7
8
search_catalog(
  fields = c("nid", "uuid", "title", "field_contact_email", "field_wbddh_data_type",
    "status"),
  filters = c(field_wbddh_data_type = 294, status = 1),
  limit = 200,
  root_url = dkanr::get_url(),
  credentials = list(cookie = dkanr::get_cookie(), token = dkanr::get_token())
)

Arguments

fields

character vector: fields to be returned by the search

filters

named character vector: filters to be applied to the search

limit

numeric: Maximum number of records to retrieve by search iteration

root_url

character: API root URL

credentials

list: API authentication credentials

Value

list


tonyfujs/ddhconnect documentation built on June 3, 2020, 10:33 a.m.