Thanks Subu. I have since changed to using the List Contacts API which seems to be less buggy and completes much faster as the while loop isn't required.
@Pierre I am glad my previous post was helpful, I have found most of the API calls from R to be a bit fiddly. I am afraid that I have not tried to use the copy survey API call, I just very quickly tried to hack an attempt at it but it didn't seem to work, but I am not 100% why it didn't. You may have already tried this, but my starting place was here: vCopySurvey <- POST(url = vPOST_URL, add_headers('X-API-TOKEN' = vQualtrics_Token, 'X-COPY-SOURCE' = vSurveyID, 'X-COPY-DESTINATION-OWNER' = vUserID, 'Content-Type' = 'application/json')) Sorry I couldn't be more helpful. But I do hope you nail it! Please let me know if you find the solution, I'd be interested in understanding how it works.
Hi RTSullivan, I am connecting to Twitter via R, completing some analysis on the Tweets which I receive and then I wanted to load those tweets into a blank Qualtrics survey which I set up. The reason I wanted to load it into Qualtrics was to use the Text IQ functionality. I used the API call at the following link to post the survey responses into my blank Twitter survey. api.qualtrics.com/docs/update-response I have used a couple of the POST API functions to modify and enhance some information which isn't captured in the survey. It works quite nicely.
Hi RTSullivan, thank you for responding to my question. I have tried the 'qualtRics' package and it is amazing! Unfortunately, the current functionality is focused on downloading response from Qualtrics to R. I need to be able to post information from R into Qualtrics. I did manage to put together a solution to my question using a combination of features within the httr package. The script below picks up a .csv file from a local directory and posts the responses to a given location. # identify the path and file of interest vFilePath <- paste(dir_Output, "/", vFileName, sep = "") # Load the csv file into the Twitter Analysis Qualtrics survey vQualtrics_Upload <- POST(url = vPOST_URL, add_headers('X-API-TOKEN' = vQualtrics_Token), body = list(surveyId = vQualtrics_SurveyID, file = upload_file(vFilePath, type = "text/csv"))) # delete the csv file from local directory if successfully loaded into Qualtrics if(vQualtrics_Upload$stat
Already have an account? Login
Enter your username or 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.