R/class-auth-utils.R
sbg_set_env.Rd
Set authentication environment variables for Seven Bridges API
sbg_set_env(url = NULL, token = NULL)
url | Base URL for API. |
---|---|
token | Your authentication token. |
set two environment variables for authentication
# set and get environment variables for CGC token <- "your_token" if (FALSE) { sbg_set_env("https://cgc-api.sbgenomics.com/v2", token) sbg_get_env("SB_API_ENDPOINT") sbg_get_env("SB_AUTH_TOKEN")}