Runs GET on generic Elsevier Search

generic_elsevier_api(query = NULL, type = c("search", "article",
  "entitlement", "recommendation", "object", "fragment", "abstract",
  "affiliation", "embase", "author", "serial", "nonserial", "subject",
  "holdings", "citation-count", "citations", "metadata", "ev",
  "ev_records", "analytics"), search_type = c("affiliation", "author",
  "scopus", "scidir", "scidir-object", "sciencedirect", "plumx"),
  api_key = NULL, headers = NULL, content_type = c("content",
  "feedback"), root_http = "https://api.elsevier.com", http_end = NULL,
  verbose = TRUE, api_key_error = TRUE, ...)

Arguments

query

Query to run, not overall query, but `queryParam` query

type

Type of search. See https://dev.elsevier.com/api_docs.html

search_type

Type of search if type = "search". See https://dev.elsevier.com/api_docs.html

api_key

Elsevier API key

headers

Headers passed to add_headers, passed to GET

content_type

Is the data content or feedback?

root_http

address to use for query

http_end

string to add to end of http specification (done using paste0)

verbose

Print messages from specification

api_key_error

Should there be an error if no API key?

...

Options passed to queryParam for GET

Value

List of elements, content and the GET request

Examples

if (FALSE) { query_string = "affil(hopkins)" # Use affiliation query s = generic_elsevier_api(query = query_string, type = "search", search_type = "affiliation", api_key = api_key, verbose = FALSE) # Use author query s = generic_elsevier_api(query = query_string, type = "search", search_type = "author", api_key = api_key, verbose = FALSE) # Query abstract by pii s = generic_elsevier_api(query = "", type = "abstract", http_end = "pii/S1053811915002700", api_key = api_key, verbose = FALSE) }