bhl_openurl: Not sure how this differs from their other API...

View source: R/bhl_openurl.R

bhl_openurlR Documentation

Not sure how this differs from their other API...

Description

Not sure how this differs from their other API...

Usage

bhl_openurl(
  genre = NULL,
  title = NULL,
  aufirst = NULL,
  aulast = NULL,
  date = NULL,
  spage = NULL,
  issue = NULL,
  version = 0.1,
  as = "list",
  key = NULL,
  ...
)

Arguments

genre

Book genre

title

Book title

aufirst

First author

aulast

Last author

date

Date of publication

spage

Start page

issue

Issue number

version

One of 0.1 or 1.0

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

## Not run: 
bhl_openurl(
	genre="book",
	title="Manual+of+North+American+Diptera",
	aufirst="Samuel Wendell",
	aulast="Williston",
	date=1908,
	spage=16)

bhl_openurl(genre="book", title="Manual+of+North+American+Diptera",
   aufirst="Samuel Wendell", aulast="Williston", date=1908, spage=16)

bhl_openurl(genre="book", title="Manual+of+North+American+Diptera",
   aufirst="Samuel Wendell", aulast="Williston", date=1908, spage=16,
   as='xml')

## End(Not run)

ropensci/rbhl documentation built on Sept. 12, 2022, 2:02 p.m.