Closed Tyler-Owen-Morris closed 3 months ago
Added a method to push embedded data into single survey responses. This is a common task I do working with Qualtrics, so I think it will be useful.
`from QualtricsAPI.Setup import Credentials from QualtricsAPI.Survey import Responses
Credentials().qualtrics_api_credentials(token='',data_center='')
resp = Responses() payload = {"a":"1"} resp.update_survey_response_embedded_data(survey="<your surveyid",response_id="your response id",embedded_data=payload)`
Combined with a CSV and pandas, you could loop through the rows of the file, and construct each update out of each row and then just call this single method with the data.
Added a method to push embedded data into single survey responses. This is a common task I do working with Qualtrics, so I think it will be useful.
`from QualtricsAPI.Setup import Credentials from QualtricsAPI.Survey import Responses
Call the qualtrics_api_credentials() method (XM Directory Users)
Credentials().qualtrics_api_credentials(token='',data_center='')
resp = Responses() payload = {"a":"1"} resp.update_survey_response_embedded_data(survey="<your surveyid",response_id="your response id",embedded_data=payload)`
Combined with a CSV and pandas, you could loop through the rows of the file, and construct each update out of each row and then just call this single method with the data.