Retrieve REDCap Credentials Based on Specified Parameters
Source:R/get_redcap_credentials.R
get_redcap_credentials.Rd
Fetches REDCap credentials from the CREDENTIALS_DB, allowing filtering based on project ID, server short name, project short name, and username. At least one filtering criterion must be provided.
Usage
get_redcap_credentials(
project_pid = NA,
server_short_name = NA,
project_short_name = NA,
username = NA
)
Examples
if (FALSE) { # \dontrun{
source_credentials <- get_redcap_credentials(project_pid = "123")
prod_credentials <- get_redcap_credentials(server_short_name = "prod")
target_credentials <- prod_credentials |>
filter(str_detect(project_name, "biospecimens"))
} # }