Description Usage Arguments Author(s) See Also Examples
View source: R/getSurveyQuestions.R
Retrieve a Data Frame Containing Question IDs and Labels
1  | getSurveyQuestions(surveyID)
 | 
surveyID | 
 String. Unique ID for the survey you want to download. Returned as 'id' by the getSurveys function.  | 
Jasper Ginn, Phoebe Wong
See https://api.qualtrics.com/docs for documentation on the Qualtrics API.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  | ## Not run: 
# Register your Qualtrics credentials if you haven't already
registerOptions(api_token = "<YOUR-API-TOKEN>",
                base_url = "<YOUR-ROOT-URL>")
# Retrieve a list of surveys
surveys <- getSurveys()
# Retrieve questions for a survey
questions <- getSurveyQuestions(surveyID = surveys$id[6])
# Retrieve a single survey, filtering for questions I want.
mysurvey <- getSurvey(surveyID = surveys$id[6],
                      saveDir = tempdir(),
                      includedQuestionIds = c("QID1", "QID2", "QID3"),
                      verbose = TRUE)
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.