qualtRics (version 0.1)

constructHeader: Construct a header to send to qualtrics API

Description

Construct a header to send to qualtrics API

Usage

constructHeader(API.TOKEN)

Arguments

API.TOKEN

API token. Available in your qualtrics account (see: https://api.qualtrics.com/docs/authentication)

See Also

See https://api.qualtrics.com/docs/root-url 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 DataCamp Workspace