qualtRics (version 1.0)

registerApiKey: Register qualtrics API key

Description

This function registers the user's qualtrics API key for the remainder of the R session. This function only needs to be called once (at the beginning of each R session).

Usage

registerApiKey(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

registerApiKey("<YOUR-QUALTRICS-API-KEY>")
surveys <- getSurveys("https://leidenuniv.eu.qualtrics.com")
                      # URL is for my own institution.
                      # Substitute with your own institution's url
mysurvey <- getSurvey(surveys$id[6],
                      format = "csv",
                      save_dir = tempdir(),
                      "https://leidenuniv.eu.qualtrics.com",
                      verbose=TRUE)


Run the code above in your browser using DataCamp Workspace