# NOT RUN {
# Register your Qualtrics credentials if you haven't already
# Note that you need to pass both the 'api_token' and 'root_url'
# parameters if you call this function for the first time.
registerOptions(api_token="<YOUR-API-TOKEN>", root_url="<YOUR-ROOT-URL>")
# Get metadata for a survey
md <- metadata(surveyID = id)
# Get metadata with specific elements
md_specific <- metadata(surveyID= id, get=list(questions=FALSE, flow=TRUE))
# Get specific question metadata
question_specific <- metadata(surveyID=id, get=list(questions=TRUE), questions=c("Q1","Q2"))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab