Description Usage Arguments Value Note Examples
Check API Keys for Various Web of Science APIs
1 2 3 4 5 6 7 8 9 10 | ws_construct_api_key(api_key = NULL, error = TRUE, key_option, sys_env,
key_filename_option, api_name = "")
ws_api_key(api_key = NULL, error = TRUE, api = names(ws_list_apis()))
ws_api_key_header(api_key = NULL)
ws_list_apis()
ws_auth_header(api_key = NULL)
|
api_key |
Web of Science API key |
error |
Should the function error if |
key_option |
option to grab API key using |
sys_env |
System environment variable to grab API key from
|
key_filename_option |
Option retrieved from |
api_name |
Name of API key |
api |
an endpoint for the API, see
|
API key character string
You can either set the API key using
option(ws_API_key)
or have it accessible by
api_key = Sys.getenv('API_KEY')
, where API
is one of the Web of Science APIs, such as INCITES
1 2 3 4 5 6 7 8 9 10 11 | api_key = NULL
error = FALSE
api_key = ws_construct_api_key(
api_key = api_key,
error = error,
key_option = "ws_incites_key",
sys_env = "INCITES_KEY",
key_filename_option = "ws_incites_key_filename",
api_name = "Incites")
ws_list_apis()
ws_auth_header(api_key = "my_api_key")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.