When run as a string the requests module returns this error: File "qualtrics.py", line 26, in <module> downloadRequestPayload = '{"format":"' + fileFormat + '","surveyId":"' + surveyId + '","useLabels":"' + useLabels + '"}' TypeError: must be str, not bool I believe it is because python is putting together a JSON file to be sent to the qualtrics api using exclusively strings. When Qualtrics receives it as a JSON it then recognizes it as a bool datatype.
am I right to add it to my downloadRequestPayload? like so: useLabels = "true" downloadRequestPayload = '{"format":"' + fileFormat + '","surveyId":"' + surveyId + '","useLabels":"' + useLabels + '"}' When I do it get the following error: File "qualtrics.py", line 28, in <module> progressId = downloadRequestResponse.json()["result"]["id"] KeyError: 'result'
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.