Jaseibert / QualtricsAPI

QualtricsAPI is a lightweight Python Package for the Qualtrics API.
https://www.qualtricsapi-pydocs.com
MIT License
18 stars 13 forks source link

added new method for updating embedded data on single survey responses #16

Closed Tyler-Owen-Morris closed 3 months ago

Tyler-Owen-Morris commented 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

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.