qualtrics 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/.env.example +3 -0
  3. data/.gitignore +23 -0
  4. data/.rspec +1 -0
  5. data/Gemfile +7 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +29 -0
  8. data/Rakefile +7 -0
  9. data/lib/qualtrics.rb +52 -0
  10. data/lib/qualtrics/configuration.rb +17 -0
  11. data/lib/qualtrics/distribution.rb +90 -0
  12. data/lib/qualtrics/entity.rb +55 -0
  13. data/lib/qualtrics/mailer.rb +111 -0
  14. data/lib/qualtrics/message.rb +75 -0
  15. data/lib/qualtrics/operation.rb +77 -0
  16. data/lib/qualtrics/panel.rb +69 -0
  17. data/lib/qualtrics/panel_import.rb +41 -0
  18. data/lib/qualtrics/panel_import_file.rb +28 -0
  19. data/lib/qualtrics/recipient.rb +109 -0
  20. data/lib/qualtrics/recipient_import_row.rb +40 -0
  21. data/lib/qualtrics/response.rb +35 -0
  22. data/lib/qualtrics/survey.rb +80 -0
  23. data/lib/qualtrics/survey_import.rb +26 -0
  24. data/lib/qualtrics/transaction.rb +70 -0
  25. data/lib/qualtrics/version.rb +3 -0
  26. data/qualtrics.gemspec +34 -0
  27. data/spec/fixtures/sample_survey.xml +2 -0
  28. data/spec/fixtures/vcr_cassettes/Qualtrics_Distribution/creating_to_qualtrics/can_retrieve_a_panel_of_distributions_in_qualtrics.yml +655 -0
  29. data/spec/fixtures/vcr_cassettes/Qualtrics_Distribution/creating_to_qualtrics/can_update_itself.yml +599 -0
  30. data/spec/fixtures/vcr_cassettes/Qualtrics_Mailer/creating_to_qualtrics/sends_a_reminder_to_a_distribution.yml +493 -0
  31. data/spec/fixtures/vcr_cassettes/Qualtrics_Mailer/creating_to_qualtrics/sends_a_survey_to_a_panel_and_creates_a_distribution.yml +441 -0
  32. data/spec/fixtures/vcr_cassettes/Qualtrics_Mailer/creating_to_qualtrics/sends_a_survey_to_an_individual_and_creates_a_distribution.yml +441 -0
  33. data/spec/fixtures/vcr_cassettes/Qualtrics_Message/creating_to_qualtrics/persists_to_qualtrics.yml +56 -0
  34. data/spec/fixtures/vcr_cassettes/Qualtrics_Message/creating_to_qualtrics/populates_the_message_id_when_successful.yml +56 -0
  35. data/spec/fixtures/vcr_cassettes/Qualtrics_Message/creating_to_qualtrics/populates_the_success_attribute.yml +56 -0
  36. data/spec/fixtures/vcr_cassettes/Qualtrics_Message/retrieves_an_array_of_all_panels_in_a_library.yml +115 -0
  37. data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/creating_to_qualtrics/persists_to_qualtrics.yml +107 -0
  38. data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/creating_to_qualtrics/populates_the_panel_id_when_successful.yml +107 -0
  39. data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/creating_to_qualtrics/populates_the_success_attribute.yml +107 -0
  40. data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/destroys_a_panel_that_returns_true_when_successful.yml +107 -0
  41. data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/raises_an_error_when_you_attempt_to_save_an_already_presisted_panel.yml +55 -0
  42. data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/retrieves_an_array_of_all_panels_in_a_library.yml +704 -0
  43. data/spec/fixtures/vcr_cassettes/Qualtrics_PanelImport/transmits_to_qualtrics.yml +72 -0
  44. data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/creating_to_qualtrics/persists_to_qualtrics.yml +159 -0
  45. data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/creating_to_qualtrics/populates_the_recipient_id_when_successful.yml +159 -0
  46. data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/creating_to_qualtrics/populates_the_success_attribute.yml +159 -0
  47. data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/creating_to_qualtrics/raises_an_error_when_a_recipient_is_created_without_specifying_a_panel_id.yml +107 -0
  48. data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/recipient_made_in_qualtrics/can_delete_itself_in_qualtrics.yml +311 -0
  49. data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/recipient_made_in_qualtrics/can_update_itself_in_qualtrics.yml +313 -0
  50. data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/recipient_made_in_qualtrics/gets_its_information_in_qualtrics.yml +209 -0
  51. data/spec/fixtures/vcr_cassettes/Qualtrics_Survey/creating_to_qualtrics/can_be_activated_or_deactivated.yml +232 -0
  52. data/spec/fixtures/vcr_cassettes/Qualtrics_Survey/creating_to_qualtrics/destroys_a_survey_that_returns_true_when_successful.yml +128 -0
  53. data/spec/fixtures/vcr_cassettes/Qualtrics_Survey/creating_to_qualtrics/populates_the_survey_id_when_successful.yml +128 -0
  54. data/spec/fixtures/vcr_cassettes/Qualtrics_Survey/creating_to_qualtrics/retrieves_an_array_of_all_surveys.yml +203 -0
  55. data/spec/fixtures/vcr_cassettes/Qualtrics_SurveyImport/transmits_to_qualtrics.yml +128 -0
  56. data/spec/qualtrics/configuration_spec.rb +53 -0
  57. data/spec/qualtrics/distribution_spec.rb +144 -0
  58. data/spec/qualtrics/mailer_spec.rb +127 -0
  59. data/spec/qualtrics/message_spec.rb +105 -0
  60. data/spec/qualtrics/panel_import_file_spec.rb +26 -0
  61. data/spec/qualtrics/panel_import_spec.rb +43 -0
  62. data/spec/qualtrics/panel_spec.rb +80 -0
  63. data/spec/qualtrics/recipient_import_row_spec.rb +62 -0
  64. data/spec/qualtrics/recipient_spec.rb +185 -0
  65. data/spec/qualtrics/response_spec.rb +41 -0
  66. data/spec/qualtrics/survey_import_spec.rb +44 -0
  67. data/spec/qualtrics/survey_spec.rb +125 -0
  68. data/spec/spec_helper.rb +11 -0
  69. data/spec/support/_dotenv.rb +2 -0
  70. data/spec/support/qualtrics.rb +5 -0
  71. data/spec/support/vcr.rb +11 -0
  72. metadata +330 -0
@@ -0,0 +1,128 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php
6
+ body:
7
+ encoding: UTF-8
8
+ string: "-------------RubyMultipartPost\r\nContent-Disposition: form-data; name=\"Name\"\r\n\r\nComplex
9
+ survey\r\n-------------RubyMultipartPost\r\nContent-Disposition: form-data;
10
+ name=\"Data\"; filename=\"sample_survey.xml\"\r\nContent-Length: 1296\r\nContent-Type:
11
+ text/xml\r\nContent-Transfer-Encoding: binary\r\n\r\n<?xml version=\"1.0\"
12
+ encoding=\"UTF-8\"?>\n<SurveyDefinition><SurveyName>Sample survey</SurveyName><OwnerID><QUALTRICS_LIBRARY_ID></OwnerID><isActive>0</isActive><CreationDate>2015-02-05
13
+ 13:57:01</CreationDate><LastModifiedDate>2015-02-05 13:57:41</LastModifiedDate><StartDate>0000-00-00
14
+ 00:00:00</StartDate><ExpirationDate>0000-00-00 00:00:00</ExpirationDate><Languages><Language
15
+ Default=\"1\">EN</Language></Languages><Questions><Question QuestionID=\"QID1\"><Type>MC</Type><Selector>SAVR</Selector><SubSelector>TX</SubSelector><QuestionText><![CDATA[Only
16
+ one questions]]></QuestionText><QuestionDescription><![CDATA[Only one questions]]></QuestionDescription><ExportTag><![CDATA[Q1]]></ExportTag><Validation><ForceResponse>0</ForceResponse></Validation><Choices><Choice
17
+ ID=\"1\" Recode=\"1\"><Description><![CDATA[Not this]]></Description></Choice><Choice
18
+ ID=\"2\" Recode=\"2\"><Description><![CDATA[This is it]]></Description></Choice><Choice
19
+ ID=\"3\" Recode=\"3\"><Description><![CDATA[Cool answer]]></Description></Choice></Choices></Question></Questions><Blocks><Block
20
+ Description=\"Default Question Block\" ID=\"BL_bef14vSx8WZHkdn\"><BlockElements><Question
21
+ QuestionID=\"QID1\"/></BlockElements></Block></Blocks><SurveyFlow><Block FlowID=\"FL_2\"
22
+ ID=\"BL_bef14vSx8WZHkdn\"/></SurveyFlow><EmbeddedData/></SurveyDefinition>\n\r\n-------------RubyMultipartPost\r\nContent-Disposition:
23
+ form-data; name=\"User\"\r\n\r\n<QUALTRICS_USER>\r\n-------------RubyMultipartPost\r\nContent-Disposition:
24
+ form-data; name=\"Token\"\r\n\r\n<QUALTRICS_TOKEN>\r\n-------------RubyMultipartPost\r\nContent-Disposition:
25
+ form-data; name=\"Version\"\r\n\r\n2.3\r\n-------------RubyMultipartPost\r\nContent-Disposition:
26
+ form-data; name=\"Format\"\r\n\r\nJSON\r\n-------------RubyMultipartPost\r\nContent-Disposition:
27
+ form-data; name=\"Request\"\r\n\r\nimportSurvey\r\n-------------RubyMultipartPost--\r\n\r\n"
28
+ headers:
29
+ User-Agent:
30
+ - Faraday v0.9.1
31
+ Content-Type:
32
+ - multipart/form-data; boundary=-----------RubyMultipartPost
33
+ Content-Length:
34
+ - '2120'
35
+ Accept-Encoding:
36
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
37
+ Accept:
38
+ - "*/*"
39
+ response:
40
+ status:
41
+ code: 200
42
+ message: OK
43
+ headers:
44
+ Server:
45
+ - Apache
46
+ Cache-Control:
47
+ - max-age=315360000
48
+ Expires:
49
+ - Sat, 08 Feb 2025 19:16:20 GMT
50
+ P3p:
51
+ - CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
52
+ DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
53
+ Servershortname:
54
+ - w295
55
+ X-Cnection:
56
+ - close
57
+ X-Edgeconnect-Midmile-Rtt:
58
+ - '12'
59
+ - '12'
60
+ X-Edgeconnect-Origin-Mex-Latency:
61
+ - '1179'
62
+ - '567'
63
+ Content-Length:
64
+ - '83'
65
+ Content-Type:
66
+ - application/json
67
+ Date:
68
+ - Wed, 11 Feb 2015 19:16:21 GMT
69
+ Connection:
70
+ - keep-alive
71
+ body:
72
+ encoding: UTF-8
73
+ string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":{\"SurveyID\":\"SV_1YVCV0HS37UEUGp\"}}"
74
+ http_version:
75
+ recorded_at: Wed, 11 Feb 2015 19:16:24 GMT
76
+ - request:
77
+ method: post
78
+ uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php
79
+ body:
80
+ encoding: UTF-8
81
+ string: Format=JSON&Request=deleteSurvey&SurveyID=SV_1YVCV0HS37UEUGp&Token=<QUALTRICS_TOKEN>&User=brookesidedev%40brookeside.com&Version=2.3
82
+ headers:
83
+ User-Agent:
84
+ - Faraday v0.9.1
85
+ Content-Type:
86
+ - application/x-www-form-urlencoded
87
+ Accept-Encoding:
88
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
89
+ Accept:
90
+ - "*/*"
91
+ response:
92
+ status:
93
+ code: 200
94
+ message: OK
95
+ headers:
96
+ Server:
97
+ - Apache
98
+ Cache-Control:
99
+ - max-age=315360000
100
+ Expires:
101
+ - Sat, 08 Feb 2025 19:16:21 GMT
102
+ P3p:
103
+ - CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
104
+ DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
105
+ Servershortname:
106
+ - w2
107
+ X-Cnection:
108
+ - close
109
+ X-Edgeconnect-Midmile-Rtt:
110
+ - '14'
111
+ - '16'
112
+ X-Edgeconnect-Origin-Mex-Latency:
113
+ - '547'
114
+ - '997'
115
+ Content-Length:
116
+ - '54'
117
+ Content-Type:
118
+ - application/json
119
+ Date:
120
+ - Wed, 11 Feb 2015 19:16:22 GMT
121
+ Connection:
122
+ - keep-alive
123
+ body:
124
+ encoding: UTF-8
125
+ string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":null}"
126
+ http_version:
127
+ recorded_at: Wed, 11 Feb 2015 19:16:25 GMT
128
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,203 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php
6
+ body:
7
+ encoding: UTF-8
8
+ string: "-------------RubyMultipartPost\r\nContent-Disposition: form-data; name=\"Name\"\r\n\r\nComplex
9
+ survey\r\n-------------RubyMultipartPost\r\nContent-Disposition: form-data;
10
+ name=\"Data\"; filename=\"sample_survey.xml\"\r\nContent-Length: 1296\r\nContent-Type:
11
+ text/xml\r\nContent-Transfer-Encoding: binary\r\n\r\n<?xml version=\"1.0\"
12
+ encoding=\"UTF-8\"?>\n<SurveyDefinition><SurveyName>Sample survey</SurveyName><OwnerID><QUALTRICS_LIBRARY_ID></OwnerID><isActive>0</isActive><CreationDate>2015-02-05
13
+ 13:57:01</CreationDate><LastModifiedDate>2015-02-05 13:57:41</LastModifiedDate><StartDate>0000-00-00
14
+ 00:00:00</StartDate><ExpirationDate>0000-00-00 00:00:00</ExpirationDate><Languages><Language
15
+ Default=\"1\">EN</Language></Languages><Questions><Question QuestionID=\"QID1\"><Type>MC</Type><Selector>SAVR</Selector><SubSelector>TX</SubSelector><QuestionText><![CDATA[Only
16
+ one questions]]></QuestionText><QuestionDescription><![CDATA[Only one questions]]></QuestionDescription><ExportTag><![CDATA[Q1]]></ExportTag><Validation><ForceResponse>0</ForceResponse></Validation><Choices><Choice
17
+ ID=\"1\" Recode=\"1\"><Description><![CDATA[Not this]]></Description></Choice><Choice
18
+ ID=\"2\" Recode=\"2\"><Description><![CDATA[This is it]]></Description></Choice><Choice
19
+ ID=\"3\" Recode=\"3\"><Description><![CDATA[Cool answer]]></Description></Choice></Choices></Question></Questions><Blocks><Block
20
+ Description=\"Default Question Block\" ID=\"BL_bef14vSx8WZHkdn\"><BlockElements><Question
21
+ QuestionID=\"QID1\"/></BlockElements></Block></Blocks><SurveyFlow><Block FlowID=\"FL_2\"
22
+ ID=\"BL_bef14vSx8WZHkdn\"/></SurveyFlow><EmbeddedData/></SurveyDefinition>\n\r\n-------------RubyMultipartPost\r\nContent-Disposition:
23
+ form-data; name=\"User\"\r\n\r\n<QUALTRICS_USER>\r\n-------------RubyMultipartPost\r\nContent-Disposition:
24
+ form-data; name=\"Token\"\r\n\r\n<QUALTRICS_TOKEN>\r\n-------------RubyMultipartPost\r\nContent-Disposition:
25
+ form-data; name=\"Version\"\r\n\r\n2.3\r\n-------------RubyMultipartPost\r\nContent-Disposition:
26
+ form-data; name=\"Format\"\r\n\r\nJSON\r\n-------------RubyMultipartPost\r\nContent-Disposition:
27
+ form-data; name=\"Request\"\r\n\r\nimportSurvey\r\n-------------RubyMultipartPost--\r\n\r\n"
28
+ headers:
29
+ User-Agent:
30
+ - Faraday v0.9.1
31
+ Content-Type:
32
+ - multipart/form-data; boundary=-----------RubyMultipartPost
33
+ Content-Length:
34
+ - '2120'
35
+ Accept-Encoding:
36
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
37
+ Accept:
38
+ - "*/*"
39
+ response:
40
+ status:
41
+ code: 200
42
+ message: OK
43
+ headers:
44
+ Server:
45
+ - Apache
46
+ Cache-Control:
47
+ - max-age=315360000
48
+ Expires:
49
+ - Sat, 08 Feb 2025 19:16:22 GMT
50
+ P3p:
51
+ - CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
52
+ DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
53
+ Servershortname:
54
+ - w8
55
+ X-Cnection:
56
+ - close
57
+ X-Edgeconnect-Midmile-Rtt:
58
+ - '10'
59
+ - '13'
60
+ X-Edgeconnect-Origin-Mex-Latency:
61
+ - '1098'
62
+ - '573'
63
+ Content-Length:
64
+ - '83'
65
+ Content-Type:
66
+ - application/json
67
+ Date:
68
+ - Wed, 11 Feb 2015 19:16:23 GMT
69
+ Connection:
70
+ - keep-alive
71
+ body:
72
+ encoding: UTF-8
73
+ string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":{\"SurveyID\":\"SV_2srUFiUg3s8Nz25\"}}"
74
+ http_version:
75
+ recorded_at: Wed, 11 Feb 2015 19:16:26 GMT
76
+ - request:
77
+ method: get
78
+ uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php?Format=JSON&LibraryID=<QUALTRICS_LIBRARY_ID>&Request=getSurveys&Token=<QUALTRICS_TOKEN>&User=<QUALTRICS_USER>&Version=2.3
79
+ body:
80
+ encoding: US-ASCII
81
+ string: ''
82
+ headers:
83
+ User-Agent:
84
+ - Faraday v0.9.1
85
+ Accept-Encoding:
86
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
87
+ Accept:
88
+ - "*/*"
89
+ response:
90
+ status:
91
+ code: 200
92
+ message: OK
93
+ headers:
94
+ Server:
95
+ - Apache
96
+ Cache-Control:
97
+ - max-age=315360000
98
+ Expires:
99
+ - Sat, 08 Feb 2025 19:16:24 GMT
100
+ P3p:
101
+ - CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
102
+ DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
103
+ Servershortname:
104
+ - w631
105
+ X-Cnection:
106
+ - close
107
+ X-Edgeconnect-Midmile-Rtt:
108
+ - '14'
109
+ - '15'
110
+ X-Edgeconnect-Origin-Mex-Latency:
111
+ - '193'
112
+ - '623'
113
+ Content-Length:
114
+ - '2921'
115
+ Content-Type:
116
+ - application/json
117
+ Date:
118
+ - Wed, 11 Feb 2015 19:16:24 GMT
119
+ Connection:
120
+ - keep-alive
121
+ body:
122
+ encoding: UTF-8
123
+ string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":{\"Surveys\":[{\"responses\":\"516\",\"SurveyType\":\"SV\",\"SurveyID\":\"SV_1zPYmohnDdgSdh3\",\"SurveyName\":\"Full
124
+ Insight Survey (Brookeside Version)\",\"SurveyOwnerID\":\"<QUALTRICS_LIBRARY_ID>\",\"SurveyStatus\":\"Active\",\"SurveyStartDate\":\"0000-00-00
125
+ 00:00:00\",\"SurveyExpirationDate\":\"0000-00-00 00:00:00\",\"SurveyCreationDate\":\"2014-10-02
126
+ 18:03:12\",\"CreatorID\":\"<QUALTRICS_LIBRARY_ID>\",\"LastModified\":\"2014-12-31
127
+ 02:05:51\",\"LastActivated\":\"2014-10-02 18:13:07\",\"UserFirstName\":\"Engineer\",\"UserLastName\":\"Development\"},{\"SurveyType\":\"SV\",\"SurveyID\":\"SV_2srUFiUg3s8Nz25\",\"SurveyName\":\"Complex
128
+ survey\",\"SurveyOwnerID\":\"<QUALTRICS_LIBRARY_ID>\",\"SurveyStatus\":\"Inactive\",\"SurveyStartDate\":\"0000-00-00
129
+ 00:00:00\",\"SurveyExpirationDate\":\"0000-00-00 00:00:00\",\"SurveyCreationDate\":\"2015-02-11
130
+ 12:16:23\",\"CreatorID\":\"<QUALTRICS_LIBRARY_ID>\",\"LastModified\":\"2015-02-11
131
+ 12:16:23\",\"LastActivated\":\"0000-00-00 00:00:00\",\"UserFirstName\":\"Engineer\",\"UserLastName\":\"Development\"},{\"responses\":\"25\",\"SurveyType\":\"SV\",\"SurveyID\":\"SV_6ukYMZ14DGZic0R\",\"SurveyName\":\"Full
132
+ Insight Survey - Japan PROD\",\"SurveyDescription\":\"Full Insight Survey
133
+ - Japan\",\"SurveyOwnerID\":\"<QUALTRICS_LIBRARY_ID>\",\"SurveyStatus\":\"Active\",\"SurveyStartDate\":\"0000-00-00
134
+ 00:00:00\",\"SurveyExpirationDate\":\"0000-00-00 00:00:00\",\"SurveyCreationDate\":\"2013-10-31
135
+ 13:05:06\",\"CreatorID\":\"<QUALTRICS_LIBRARY_ID>\",\"LastModified\":\"2014-02-12
136
+ 12:30:23\",\"LastActivated\":\"2013-10-31 13:27:46\",\"UserFirstName\":\"Engineer\",\"UserLastName\":\"Development\"},{\"responses\":\"1974\",\"SurveyType\":\"SV\",\"SurveyID\":\"SV_aacWNKg4MVNw6Bn\",\"SurveyName\":\"Full
137
+ Insight Survey (SalesEquity Version)\",\"SurveyOwnerID\":\"<QUALTRICS_LIBRARY_ID>\",\"SurveyStatus\":\"Active\",\"SurveyStartDate\":\"0000-00-00
138
+ 00:00:00\",\"SurveyExpirationDate\":\"0000-00-00 00:00:00\",\"SurveyCreationDate\":\"2013-06-19
139
+ 11:51:54\",\"CreatorID\":\"<QUALTRICS_LIBRARY_ID>\",\"LastModified\":\"2014-11-10
140
+ 08:54:23\",\"LastActivated\":\"2014-02-06 08:02:22\",\"UserFirstName\":\"Engineer\",\"UserLastName\":\"Development\"},{\"responses\":\"2\",\"SurveyType\":\"SV\",\"SurveyID\":\"SV_afzoFekkN5awFhP\",\"SurveyName\":\"Full
141
+ Insight Survey (extra question)\",\"SurveyOwnerID\":\"<QUALTRICS_LIBRARY_ID>\",\"SurveyStatus\":\"Active\",\"SurveyStartDate\":\"0000-00-00
142
+ 00:00:00\",\"SurveyExpirationDate\":\"0000-00-00 00:00:00\",\"SurveyCreationDate\":\"2014-07-30
143
+ 09:26:40\",\"CreatorID\":\"<QUALTRICS_LIBRARY_ID>\",\"LastModified\":\"2014-10-29
144
+ 12:31:31\",\"LastActivated\":\"2014-07-30 09:28:56\",\"UserFirstName\":\"Engineer\",\"UserLastName\":\"Development\"},{\"responses\":\"125\",\"SurveyType\":\"SV\",\"SurveyID\":\"SV_egSy0PYkF9wnAd7\",\"SurveyName\":\"Full
145
+ Insight Survey (for dev)\",\"SurveyOwnerID\":\"<QUALTRICS_LIBRARY_ID>\",\"SurveyStatus\":\"Active\",\"SurveyStartDate\":\"0000-00-00
146
+ 00:00:00\",\"SurveyExpirationDate\":\"0000-00-00 00:00:00\",\"SurveyCreationDate\":\"2014-02-14
147
+ 14:15:09\",\"CreatorID\":\"<QUALTRICS_LIBRARY_ID>\",\"LastModified\":\"2015-02-05
148
+ 12:54:22\",\"LastActivated\":\"2014-02-14 14:56:12\",\"UserFirstName\":\"Engineer\",\"UserLastName\":\"Development\"}]}}"
149
+ http_version:
150
+ recorded_at: Wed, 11 Feb 2015 19:16:27 GMT
151
+ - request:
152
+ method: post
153
+ uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php
154
+ body:
155
+ encoding: UTF-8
156
+ string: Format=JSON&Request=deleteSurvey&SurveyID=SV_2srUFiUg3s8Nz25&Token=<QUALTRICS_TOKEN>&User=brookesidedev%40brookeside.com&Version=2.3
157
+ headers:
158
+ User-Agent:
159
+ - Faraday v0.9.1
160
+ Content-Type:
161
+ - application/x-www-form-urlencoded
162
+ Accept-Encoding:
163
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
164
+ Accept:
165
+ - "*/*"
166
+ response:
167
+ status:
168
+ code: 200
169
+ message: OK
170
+ headers:
171
+ Server:
172
+ - Apache
173
+ Cache-Control:
174
+ - max-age=315360000
175
+ Expires:
176
+ - Sat, 08 Feb 2025 19:16:24 GMT
177
+ P3p:
178
+ - CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
179
+ DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
180
+ Servershortname:
181
+ - w163
182
+ X-Cnection:
183
+ - close
184
+ X-Edgeconnect-Midmile-Rtt:
185
+ - '11'
186
+ - '21'
187
+ X-Edgeconnect-Origin-Mex-Latency:
188
+ - '540'
189
+ - '979'
190
+ Content-Length:
191
+ - '54'
192
+ Content-Type:
193
+ - application/json
194
+ Date:
195
+ - Wed, 11 Feb 2015 19:16:25 GMT
196
+ Connection:
197
+ - keep-alive
198
+ body:
199
+ encoding: UTF-8
200
+ string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":null}"
201
+ http_version:
202
+ recorded_at: Wed, 11 Feb 2015 19:16:28 GMT
203
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,128 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php
6
+ body:
7
+ encoding: UTF-8
8
+ string: "-------------RubyMultipartPost\r\nContent-Disposition: form-data; name=\"Name\"\r\n\r\n\r\n-------------RubyMultipartPost\r\nContent-Disposition:
9
+ form-data; name=\"Data\"; filename=\"sample_survey.xml\"\r\nContent-Length:
10
+ 1296\r\nContent-Type: text/xml\r\nContent-Transfer-Encoding: binary\r\n\r\n<?xml
11
+ version=\"1.0\" encoding=\"UTF-8\"?>\n<SurveyDefinition><SurveyName>Sample
12
+ survey</SurveyName><OwnerID><QUALTRICS_LIBRARY_ID></OwnerID><isActive>0</isActive><CreationDate>2015-02-05
13
+ 13:57:01</CreationDate><LastModifiedDate>2015-02-05 13:57:41</LastModifiedDate><StartDate>0000-00-00
14
+ 00:00:00</StartDate><ExpirationDate>0000-00-00 00:00:00</ExpirationDate><Languages><Language
15
+ Default=\"1\">EN</Language></Languages><Questions><Question QuestionID=\"QID1\"><Type>MC</Type><Selector>SAVR</Selector><SubSelector>TX</SubSelector><QuestionText><![CDATA[Only
16
+ one questions]]></QuestionText><QuestionDescription><![CDATA[Only one questions]]></QuestionDescription><ExportTag><![CDATA[Q1]]></ExportTag><Validation><ForceResponse>0</ForceResponse></Validation><Choices><Choice
17
+ ID=\"1\" Recode=\"1\"><Description><![CDATA[Not this]]></Description></Choice><Choice
18
+ ID=\"2\" Recode=\"2\"><Description><![CDATA[This is it]]></Description></Choice><Choice
19
+ ID=\"3\" Recode=\"3\"><Description><![CDATA[Cool answer]]></Description></Choice></Choices></Question></Questions><Blocks><Block
20
+ Description=\"Default Question Block\" ID=\"BL_bef14vSx8WZHkdn\"><BlockElements><Question
21
+ QuestionID=\"QID1\"/></BlockElements></Block></Blocks><SurveyFlow><Block FlowID=\"FL_2\"
22
+ ID=\"BL_bef14vSx8WZHkdn\"/></SurveyFlow><EmbeddedData/></SurveyDefinition>\n\r\n-------------RubyMultipartPost\r\nContent-Disposition:
23
+ form-data; name=\"User\"\r\n\r\n<QUALTRICS_USER>\r\n-------------RubyMultipartPost\r\nContent-Disposition:
24
+ form-data; name=\"Token\"\r\n\r\n<QUALTRICS_TOKEN>\r\n-------------RubyMultipartPost\r\nContent-Disposition:
25
+ form-data; name=\"Version\"\r\n\r\n2.3\r\n-------------RubyMultipartPost\r\nContent-Disposition:
26
+ form-data; name=\"Format\"\r\n\r\nJSON\r\n-------------RubyMultipartPost\r\nContent-Disposition:
27
+ form-data; name=\"Request\"\r\n\r\nimportSurvey\r\n-------------RubyMultipartPost--\r\n\r\n"
28
+ headers:
29
+ User-Agent:
30
+ - Faraday v0.9.1
31
+ Content-Type:
32
+ - multipart/form-data; boundary=-----------RubyMultipartPost
33
+ Content-Length:
34
+ - '2106'
35
+ Accept-Encoding:
36
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
37
+ Accept:
38
+ - "*/*"
39
+ response:
40
+ status:
41
+ code: 200
42
+ message: OK
43
+ headers:
44
+ Server:
45
+ - Apache
46
+ Cache-Control:
47
+ - max-age=315360000
48
+ Expires:
49
+ - Sat, 08 Feb 2025 19:16:16 GMT
50
+ P3p:
51
+ - CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
52
+ DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
53
+ Servershortname:
54
+ - w016
55
+ X-Cnection:
56
+ - close
57
+ X-Edgeconnect-Midmile-Rtt:
58
+ - '12'
59
+ - '13'
60
+ X-Edgeconnect-Origin-Mex-Latency:
61
+ - '1119'
62
+ - '559'
63
+ Content-Length:
64
+ - '83'
65
+ Content-Type:
66
+ - application/json
67
+ Date:
68
+ - Wed, 11 Feb 2015 19:16:16 GMT
69
+ Connection:
70
+ - keep-alive
71
+ body:
72
+ encoding: UTF-8
73
+ string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":{\"SurveyID\":\"SV_6G1YVplaU7AWyln\"}}"
74
+ http_version:
75
+ recorded_at: Wed, 11 Feb 2015 19:16:19 GMT
76
+ - request:
77
+ method: post
78
+ uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php
79
+ body:
80
+ encoding: UTF-8
81
+ string: Format=JSON&Request=deleteSurvey&SurveyID=SV_6G1YVplaU7AWyln&Token=<QUALTRICS_TOKEN>&User=brookesidedev%40brookeside.com&Version=2.3
82
+ headers:
83
+ User-Agent:
84
+ - Faraday v0.9.1
85
+ Content-Type:
86
+ - application/x-www-form-urlencoded
87
+ Accept-Encoding:
88
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
89
+ Accept:
90
+ - "*/*"
91
+ response:
92
+ status:
93
+ code: 200
94
+ message: OK
95
+ headers:
96
+ Server:
97
+ - Apache
98
+ Cache-Control:
99
+ - max-age=315360000
100
+ Expires:
101
+ - Sat, 08 Feb 2025 19:16:17 GMT
102
+ P3p:
103
+ - CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
104
+ DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
105
+ Servershortname:
106
+ - w11
107
+ X-Cnection:
108
+ - close
109
+ X-Edgeconnect-Midmile-Rtt:
110
+ - '11'
111
+ - '15'
112
+ X-Edgeconnect-Origin-Mex-Latency:
113
+ - '547'
114
+ - '977'
115
+ Content-Length:
116
+ - '54'
117
+ Content-Type:
118
+ - application/json
119
+ Date:
120
+ - Wed, 11 Feb 2015 19:16:17 GMT
121
+ Connection:
122
+ - keep-alive
123
+ body:
124
+ encoding: UTF-8
125
+ string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":null}"
126
+ http_version:
127
+ recorded_at: Wed, 11 Feb 2015 19:16:20 GMT
128
+ recorded_with: VCR 2.9.3