elsevier_authenticate: Authenticate API Key and get Token

Description Usage Arguments Value Examples

View source: R/elsevier_authenticate.R

Description

Authenticate API Key and get Token

Usage

1
2
elsevier_authenticate(api_key = NULL, api_key_error = TRUE,
  choice = NULL, verbose = TRUE, headers = NULL, ...)

Arguments

api_key

Elsevier API key

api_key_error

Should there be an error if no API key?

choice

Choice of which registered See https://dev.elsevier.com/tecdoc_api_authentication.html

verbose

Print messages from specification

headers

Headers passed to add_headers, passed to GET

...

Additional arguments to send to GET.

Value

List of content, the GET request, and the token

Examples

1
2
3
if (have_api_key()) {
   auth = elsevier_authenticate()
}

Example output



rscopus documentation built on Sept. 18, 2019, 1:03 a.m.