| get_api_key | R Documentation |
Retrieves the OMOPHub API key from multiple sources in priority order:
Explicit argument
OMOPHUB_API_KEY environment variable
System keyring (if keyring package is installed)
get_api_key(key = NULL)
key |
Optional explicit API key. If provided, this takes precedence. |
A character string containing the API key.
## Not run:
# From environment variable
Sys.setenv(OMOPHUB_API_KEY = "your_api_key")
key <- get_api_key()
# Explicit key
key <- get_api_key("your_api_key")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.