This is a template workflow for the scorequaltrics R package developed by John Flournoy to score Qualtrics surveys.
To pull data from Qualtrics, you need a credentials file with an API token associated with your account. To create the file, follow these steps.
-
Generate an API token for Qualtrics. Follow the steps outlined here
-
Create
credentials.yaml.DEFAULTin thecredentialDirand add API token information
credentialDir='/Users/danicosme/' #replace with your path
if [ ! -f ${credentialDir}qualtrics_credentials.yaml ]; then
cd ${credentialDir}
touch qualtrics_credentials.yaml
echo "token: Ik0XNN...." >> qualtrics_credentials.yaml #replace with your token information
echo "baseurl: oregon.qualtrics.com" >> qualtrics_credentials.yaml
echo "credential file created"
else
echo "credential file already exists in this location"
fi