Learn R Programming

qualtRics (version 3.0)

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

Description

Retrieve a data frame of all active surveys on Qualtrics

Usage

getSurveys()

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
registerOptions(api_token="<YOUR-API-TOKEN>", root_url="<YOUR-ROOT-URL>")
# Retrieve a list of surveys
surveys <- getSurveys()
# Retrieve a single survey
mysurvey <- getSurvey(surveyID = surveys$id[6],
                      save_dir = tempdir(),
                      verbose=TRUE)
# You can use the same parameters as those found in the qualtrics API documentation
# Found here: https://api.qualtrics.com/docs/csv
mysurvey <- getSurvey(surveyID = surveys$id[6],
                      save_dir = tempdir(),
                      startDate = "2017-01-01",
                      endDate = "2017-01-31",
                      limit = 100,
                      useLabels = TRUE,
                      seenUnansweredRecode = "UNANS",
                      verbose=TRUE)
# }

Run the code above in your browser using DataLab