Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qualtrics webservice call using R tools #340

Closed
ginakim123 opened this issue Mar 21, 2024 · 3 comments
Closed

Qualtrics webservice call using R tools #340

ginakim123 opened this issue Mar 21, 2024 · 3 comments

Comments

@ginakim123
Copy link

ginakim123 commented Mar 21, 2024

I am currently trying to make a webservice call using R tools and getting the following error. There is no blockage in the firewall on my end, and as you can see it is throwing an error due to exceeded time.

install.packages("qualtRics")
library(qualtRics)

#Enter API info
qualtrics_api_credentials(api_key = " ",
base_url = "https://iad1.qualtrics.com/")
#This fetches a list of all of your surveys
surveys <- all_surveys()
#Set Time Zone
Sys.setenv(TZ = "UTC")
#Select survey to download
mysurvey <- fetch_survey(surveyID = " ")

Save responses to a CSV file

write.csv(mysurvey, file = "Demo_survey_responses.csv", row.names = FALSE)

@ginakim123
Copy link
Author

github2

@juliasilge
Copy link
Collaborator

Hmmmm, we don't typically see folks have problems with all_surveys() if authentication is set up correctly. You might want to try this as well to see if anything is weird in what you get back:

curl --request GET \
--url https://XXX.qualtrics.com/API/v3/whoami \
--header 'x-api-token: YOURLONGAPITOKENHERE'

This would be called from the command line (not from R) and you would need to use your URL and your API token.

@juliasilge
Copy link
Collaborator

Let us know if you have further questions! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants