Authenticate API Key and get Token
elsevier_authenticate(api_key = NULL, api_key_error = TRUE, choice = NULL, verbose = TRUE, headers = NULL, ...)
api_key
: Elsevier API keyapi_key_error
: Should there be an error if no API key?choice
: Choice of which registered See https://dev.elsevier.com/tecdoc_api_authentication.htmlverbose
: Print messages from specificationheaders
: Headers passed to add_headers
, passed to GET
...
: Additional arguments to send to GET
.List of content, the GET
request, and the token
if (have_api_key()) { auth = elsevier_authenticate() }
Useful links