config | R Documentation |
This function provides a list with settings for the base url and user agent used in API calls, and the relevant API keys required.
config()
Please edit your ~./Renviron file and set values for environment variables KTH_API_KEY_DIRECTORY, KTH_API_KEY_PROFILES and KTH_API_KEY_PUBLICATIONS you can use file.edit("~/.Renviron"); readRenviron("~/.Renviron"))
user_agent
## Not run:
if (interactive()) {
# how to change the config
my_cfg <- config()
my_cfg$ua <- httr::user_agent("My own user agent string")
my_cfg$verbose <- TRUE
# then use this config when making calls
kth_profile_legacy("tjep", config = my_cfg)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.