create_api_config: Create API configuration

Description Usage Arguments

View source: R/redcap-utils.R

Description

Function is used to create a named list of API configuration to be passed to any of the methods that interact with the REDCap API. Current defaults include using SSL certificates from REDCapR package.

Usage

1
2
3
4
create_api_config(api_url = NULL, token = NULL,
  config_options = httr::config(cainfo =
  system.file("ssl_certs/mozilla_ca_root.crt", package = "REDCapR"), timeout =
  8, ssl_verifypeer = 1))

Arguments

api_url

The API URL of the REDCap instance you'd like to connect to.

token

The API token for the project you'd like to connect to.

config_options

A list of CURL options to be passed to httr::POST. See ?httr::config for full details.


JovingeLabSoftware/BioradConfig documentation built on May 7, 2019, 12:04 p.m.