Skip to contents

Creates a base connection object that can be extended for different data sources. Placed at top level so devtools::load_all() always sources it.

Usage

sardine_connection(source, url, token, ssl_verify = TRUE, timeout = 30, ...)

Arguments

source

Character string. The data source type (e.g., "redcap")

url

Character string. The API URL

token

Character string. The API token or key

ssl_verify

Logical. Whether to verify SSL certificates (default: TRUE)

timeout

Numeric. Request timeout in seconds (default: 30)

...

Additional source-specific parameters

Value

A list object of class '_connection' and 'sardine_connection'