Good afternoon!
I'm a self-taught R developer so I might not be using the correct jargon, but please bear with me.
I have written a script to clean and process data which has been manually exported from Qualtrics, however I would like to further automate my data process workflow by tapping directly into the Qualtrics API. I am attempting to use the qualtRics package to handle the API call, but when I execute the function I get a return of port 443: Connection refused. I have yet to find a workable solution for this. I have followed the standard workflow Code below:
#Save API Key and Base URL as environment variables
qualtrics_api_credentials(
api_key = "<API_KEY>",
base_url = "<BASE_URL>",
overwrite = TRUE,
install = TRUE
)
#Refresh environment
readRenviron("~/.Renviron")
#Pull list of surveys
Surveys <- all_surveys()
#Fetch survey data from Survey based on Survey ID
SurveyData <- fetch_survey("Survey_ID",
last_response = NULL,
start_date = "2019-11-18",
end_date = NULL,
unanswer_recode = NULL,
limit = NULL,
include_questions = NULL,
save_dir = NULL,
force_request = FALSE,
verbose = TRUE,
label = TRUE,
convert = TRUE,
import_id = FALSE,
local_time = FALSE)
For both the all_surveys() and fetch_survey() functions, if I use https:// I get a return of:
"Error in curl::curl_fetch_memory(url, handle = handle) : Failed to connect to port 443: Connection refused"
and if I use http:// a return of:
"Error in curl::curl_fetch_memory(url, handle = handle) : Failed to connect to port 80: Connection refused"
Is there a workaround or a different approach I can take to pull Qualtrics survey data into a data frame via the API?
Best regards