Get a list of collections which are used to group titles and items. A single collection may contain either titles or items, but not both.

Description

Get a list of collections which are used to group titles and items. A single collection may contain either titles or items, but not both.

Usage

1
bhl_getcollections(as = "table", key = NULL, ...)

Arguments

as

(character) Return a list ("list"), json ("json"), xml ("xml"), or parsed table ("table", default). Note that as="table" can give different data format back depending on the function - for example, sometimes a data.frame and sometimes a character vector.

key

Your BHL API key, either enter, or loads from your .Renviron as BHL_KEY or from .Rprofile as bhl_key.

...

Curl options passed on to GET

Examples

1
2
3
4
5
6
7
## Not run: 
bhl_getcollections()
bhl_getcollections(as = 'list')
bhl_getcollections(as = 'json')
bhl_getcollections(as = 'xml')

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.