Learn R Programming

qualtRics (version 3.1.1)

all_surveys: Retrieve a data frame of all active surveys on Qualtrics

Description

Retrieve a data frame of all active surveys on Qualtrics

Usage

all_surveys()

Arguments

See Also

See https://api.qualtrics.com/docs for documentation on the Qualtrics API.

Examples

Run this code
# NOT RUN {
# Register your Qualtrics credentials if you haven't already
qualtrics_api_credentials(
  api_key = "<YOUR-API-KEY>",
  base_url = "<YOUR-BASE-URL>"
)

# Retrieve a list of all surveys
surveys <- all_surveys()

# Retrieve a single survey
mysurvey <- fetch_survey(surveyID = surveys$id[6])

mysurvey <- fetch_survey(
  surveyID = surveys$id[6],
  save_dir = tempdir(),
  start_date = "2018-01-01",
  end_date = "2018-01-31",
  limit = 100,
  label = TRUE,
  unanswer_recode = "UNANS",
  verbose = TRUE
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab