qualtrics_api_request: Send httr requests to Qualtrics API

View source: R/utils.R

qualtrics_api_requestR Documentation

Send httr requests to Qualtrics API

Description

Send httr requests to Qualtrics API

Usage

qualtrics_api_request(
  verb = c("GET", "POST"),
  url = url,
  body = NULL,
  as = c("parsed", "raw"),
  ...
)

Arguments

verb

Type of request to be sent (@seealso httr::VERB())

url

Qualtrics endpoint URL created by generate_url() functions

body

Options created by create_raw_payload() function

as

type of content to return, passed to as in httr::content(). current options "parsed" (since we get JSON mostly), "raw" (response .zips)

...

arguments passed to httr::content when parsing

Details

If the request to the Qualtrics API made by this function fails, the request will be retried. If you see these failures on a 500 error (such as a 504 error) be patient while the request is retried; it will typically succeed on retrying. If you see other types of errors, retrying is unlikely to help.


qualtRics documentation built on Nov. 18, 2022, 5:08 p.m.