bhl_getitembyidentifier: Find and return metadata about an item or items that match a...

Description Usage Arguments Examples

View source: R/bhl_getitembyidentifier.R

Description

If you know the Internet Archive identifier for an item, use this method to look up the equivalent item in BHL.

Usage

1
2
bhl_getitembyidentifier(type = NULL, value = NULL, as = "table",
  key = NULL, ...)

Arguments

type

the type of identifier (barcode or ia) (character)

value

the identifier value (character)

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

1
2
3
4
5
6
7
8
## Not run: 
bhl_getitembyidentifier(type='ia', value='animalkingdomarr03cuvi')
bhl_getitembyidentifier(type='ia', value='animalkingdomarr03cuvi',
  as='json')
bhl_getitembyidentifier(type='ia', value='animalkingdomarr03cuvi',
  as='xml')

## End(Not run)

rbhl documentation built on May 29, 2017, 11:08 a.m.

Search within the rbhl package
Search all R packages, documentation and source code