Description Usage Arguments Value Examples
View source: R/generic_elsevier_search.R
Runs GET on generic Elsevier Search
1 2 3 4 5 6 7 8 9 | 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, ...)
|
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 |
api_key |
Elsevier API key |
headers |
Headers passed to |
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 |
verbose |
Print messages from specification |
api_key_error |
Should there be an error if no API key? |
... |
Options passed to queryParam for |
List of elements, content and the GET
request
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.