qualtRics (version 0.1)

getSurveys: Retrieve a list of all active surveys that you own on qualtrics

Description

Retrieve a list of all active surveys that you own on qualtrics

Usage

getSurveys(headers,
  survey_baseurl = "https://yourdatacenterid.qualtrics.com/API/v3/surveys")

Arguments

headers

'headers' object - returned by the 'constructHeader' function. See constructHeader.

survey_baseurl

Base url for your institution (see https://api.qualtrics.com/docs/root-url. If you do not fill in anything, the function will use the default url. Using your institution-specific url can significantly speed up queries.)

See Also

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

Examples

Run this code
## Not run: 
# head <- constructHeader("<YOUR-API-KEY-HERE>")
# surveys <- getSurveys(head,
#                       "https://leidenuniv.eu.qualtrics.com/API/v3/responseexports/")
#                       # URL is for my own institution.
#                       # Substitute with your own institution's url
# mysurvey <- getSurvey(surveys$id[6],
#                       head,
#                       "https://leidenuniv.eu.qualtrics.com/API/v3/responseexports/",
#                       verbose=TRUE)
# ## End(Not run)

Run the code above in your browser using DataLab