ropensci / qualtRics

Download ⬇️ Qualtrics survey data directly into R!
https://docs.ropensci.org/qualtRics
Other
215 stars 70 forks source link

Basic Question-error when using Base URL #164

Closed GabriellaS-K closed 4 years ago

GabriellaS-K commented 4 years ago

Hi!

Thanks for this brilliant package! I am fairly new with R, so please forgive a pretty basic question!

I keep encountering the same error message:


Error: The Qualtrics base URL must end with '.qualtrics.com'. Your base URL looks like this: '<https://anthropology.eu.qualtrics.com>'.
Please visit https://api.qualtrics.com/docs/root-url for instructions about the Qualtrics base URL.

My code is below (I'm using R markdown, and have put in random numbers for my API Key for now)

library(qualtRics)

qualtrics_api_credentials(api_key = "<1234567890>",
                          base_url = "<https://anthropology.eu.qualtrics.com>",
                          install = TRUE, overwrite = TRUE)

Then, I try to see my surveys:

readRenviron("~/.Renviron")
surveys <- all_surveys()

And that is where I get the error message!

Thanks to anyone that can help

GabriellaS-K commented 4 years ago

fixed by removing the <> around the API and URL and generating a new API!!

juliasilge commented 4 years ago

Glad you figured it out! 🎉