retrieve_node {dkanr}R Documentation

retrieve_node

Description

Returns metadata associated with an existing DKAN Node ID.

Usage

retrieve_node(nid, url = get_url(), credentials = list(cookie =
  dkanr::get_cookie(), token = dkanr::get_token()), as = "json", ...)

Arguments

nid

character: DKAN node ID

url

character: The DKAN site URL

credentials

Optional list parameter. Default values are Cookie and Token generated by dkan_setup()

as

character: Output format. Options are: 'json' or 'list'

...

Other optional parameters passed to the underlying GET request

Value

dkan_node object

Examples

## Not run: 
retrieve_node(nid = 1, url = "http://demo.getdkan.com")

## End(Not run)

[Package dkanr version 0.1.3 Index]