Authenticate with formr
formr_api_authenticate.RdConnects to the API. If no credentials are provided, the auto-pickup
chain is: the package's hidden .formr env (set automatically when
the code runs inside an OpenCPU session on rforms.org), then the
calling-frame chain (for legacy injectors that wrote bare locals into
the wrapper scope), then the keyring.
Usage
formr_api_authenticate(
host = "https://rforms.org",
client_id = NULL,
client_secret = NULL,
access_token = NULL,
account = NULL,
verbose = TRUE
)Arguments
- host
API Base URL. Defaults to
.formr$hostwhen running on rforms.org, otherwise"https://rforms.org".- client_id
OAuth Client ID.
- client_secret
OAuth Client Secret.
- access_token
Direct Access Token.
- account
Optional string identifier for multiple accounts on the same host.
- verbose
Logical. If TRUE (default), reports success via
message().