qapi_request: qapi_request

Description Usage Arguments Value

View source: R/api.R

Description

Send request to Qualtrics API

Usage

1
2
3
4
5
6
7
8
qapi_request(
  verb,
  method,
  data = list(),
  content.as = "text",
  auth = NULL,
  all.results = TRUE
)

Arguments

verb

Request type (GET, POST, ...)

method

API call method (surveys, reponseexports, ...) or full API URL

data

Named list with request payload data

content.as

"text" or "raw" depending on if ASCII or raw data returned

auth

Qualtrics API authentication to use; if NULL, load auth from options()

all.results

Return all results if paginated, or just one page

Value

Named list of JSON decoded response content


earthlab/qtoolkit documentation built on Feb. 3, 2022, 5:57 a.m.