lib/qualtrics/survey.rb in qualtrics-0.6.0 vs lib/qualtrics/survey.rb in qualtrics-0.6.1

- old
+ new

@@ -36,9 +36,25 @@ else [] end end + def retrieve_all_raw_responses(start_date, end_date) + response = get('getLegacyResponseData', { + 'SurveyID' => id, + 'StartDate' => formatted_time(start_date), + 'EndDate' => formatted_time(end_date), + 'Format' => 'CSV', + 'ExportTags' => 1 + }) + + if response.status == 200 + response.result + else + false + end + end + def self.attribute_map { 'responses' => :responses, 'SurveyID' => :id, 'SurveyName' => :survey_name,