Return metadata about a title. You may choose to include a list of the items (books) associated with the title.

bhl_gettitlemetadata(titleid = NA, items = FALSE, as = "list", key = NULL, ...)

Arguments

titleid

the identifier of an individual title (numeric)

items

(logical) TRUE of FALSE (default) to inclue items

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 crul::HttpClient()

Examples

if (FALSE) { bhl_gettitlemetadata(1726, items = TRUE) bhl_gettitlemetadata(1726, as='list') bhl_gettitlemetadata(1726, as='xml') }