Creates a connection object for REDCap API interactions. This object stores the necessary authentication information and can be used with other sardine functions to interact with your REDCap project.
Examples
if (FALSE) { # \dontrun{
# Create connection using direct parameters
conn <- redcap_connection(
url = "https://redcap.example.edu/api/",
token = "YOUR_API_TOKEN"
)
# Create connection using environment variables
conn <- redcap_connection(
url = Sys.getenv("REDCAP_URL"),
token = Sys.getenv("REDCAP_TOKEN")
)
} # }
