bhl_pagesearch: Search an item for pages containing the specified text

Description Usage Arguments Examples

View source: R/bhl_pagesearch.R

Description

Search an item for pages containing the specified text

Usage

1
bhl_pagesearch(id, text, as = "table", key = NULL, ...)

Arguments

id

(integer) BHL identifier of the item to be searched

text

(character) the text for which to search

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
## Not run: 
bhl_pagesearch(22004, "dog")
bhl_pagesearch(22004, "dog", as = "json")

## End(Not run)

rbhl documentation built on May 13, 2021, 9:07 a.m.