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}credentials.yaml.DEFAULT ]; then
cd ${credentialDir}
touch credentials.yaml.DEFAULT
echo "user: dcosme#oregon" >> credentials.yaml.DEFAULT #replace with your token information
echo "token: IhaSx923jsjDjaSKDjh..." >> credentials.yaml.DEFAULT #replace with your token information
else
echo "credential file already exists in this location"
fi