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.
- checksums.yaml +7 -0
- data/.env.example +3 -0
- data/.gitignore +23 -0
- data/.rspec +1 -0
- data/Gemfile +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +7 -0
- data/lib/qualtrics.rb +52 -0
- data/lib/qualtrics/configuration.rb +17 -0
- data/lib/qualtrics/distribution.rb +90 -0
- data/lib/qualtrics/entity.rb +55 -0
- data/lib/qualtrics/mailer.rb +111 -0
- data/lib/qualtrics/message.rb +75 -0
- data/lib/qualtrics/operation.rb +77 -0
- data/lib/qualtrics/panel.rb +69 -0
- data/lib/qualtrics/panel_import.rb +41 -0
- data/lib/qualtrics/panel_import_file.rb +28 -0
- data/lib/qualtrics/recipient.rb +109 -0
- data/lib/qualtrics/recipient_import_row.rb +40 -0
- data/lib/qualtrics/response.rb +35 -0
- data/lib/qualtrics/survey.rb +80 -0
- data/lib/qualtrics/survey_import.rb +26 -0
- data/lib/qualtrics/transaction.rb +70 -0
- data/lib/qualtrics/version.rb +3 -0
- data/qualtrics.gemspec +34 -0
- data/spec/fixtures/sample_survey.xml +2 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Distribution/creating_to_qualtrics/can_retrieve_a_panel_of_distributions_in_qualtrics.yml +655 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Distribution/creating_to_qualtrics/can_update_itself.yml +599 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Mailer/creating_to_qualtrics/sends_a_reminder_to_a_distribution.yml +493 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Mailer/creating_to_qualtrics/sends_a_survey_to_a_panel_and_creates_a_distribution.yml +441 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Mailer/creating_to_qualtrics/sends_a_survey_to_an_individual_and_creates_a_distribution.yml +441 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Message/creating_to_qualtrics/persists_to_qualtrics.yml +56 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Message/creating_to_qualtrics/populates_the_message_id_when_successful.yml +56 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Message/creating_to_qualtrics/populates_the_success_attribute.yml +56 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Message/retrieves_an_array_of_all_panels_in_a_library.yml +115 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/creating_to_qualtrics/persists_to_qualtrics.yml +107 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/creating_to_qualtrics/populates_the_panel_id_when_successful.yml +107 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/creating_to_qualtrics/populates_the_success_attribute.yml +107 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/destroys_a_panel_that_returns_true_when_successful.yml +107 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/raises_an_error_when_you_attempt_to_save_an_already_presisted_panel.yml +55 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Panel/retrieves_an_array_of_all_panels_in_a_library.yml +704 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_PanelImport/transmits_to_qualtrics.yml +72 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/creating_to_qualtrics/persists_to_qualtrics.yml +159 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/creating_to_qualtrics/populates_the_recipient_id_when_successful.yml +159 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/creating_to_qualtrics/populates_the_success_attribute.yml +159 -0
- 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
- data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/recipient_made_in_qualtrics/can_delete_itself_in_qualtrics.yml +311 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/recipient_made_in_qualtrics/can_update_itself_in_qualtrics.yml +313 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Recipient/recipient_made_in_qualtrics/gets_its_information_in_qualtrics.yml +209 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Survey/creating_to_qualtrics/can_be_activated_or_deactivated.yml +232 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Survey/creating_to_qualtrics/destroys_a_survey_that_returns_true_when_successful.yml +128 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Survey/creating_to_qualtrics/populates_the_survey_id_when_successful.yml +128 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_Survey/creating_to_qualtrics/retrieves_an_array_of_all_surveys.yml +203 -0
- data/spec/fixtures/vcr_cassettes/Qualtrics_SurveyImport/transmits_to_qualtrics.yml +128 -0
- data/spec/qualtrics/configuration_spec.rb +53 -0
- data/spec/qualtrics/distribution_spec.rb +144 -0
- data/spec/qualtrics/mailer_spec.rb +127 -0
- data/spec/qualtrics/message_spec.rb +105 -0
- data/spec/qualtrics/panel_import_file_spec.rb +26 -0
- data/spec/qualtrics/panel_import_spec.rb +43 -0
- data/spec/qualtrics/panel_spec.rb +80 -0
- data/spec/qualtrics/recipient_import_row_spec.rb +62 -0
- data/spec/qualtrics/recipient_spec.rb +185 -0
- data/spec/qualtrics/response_spec.rb +41 -0
- data/spec/qualtrics/survey_import_spec.rb +44 -0
- data/spec/qualtrics/survey_spec.rb +125 -0
- data/spec/spec_helper.rb +11 -0
- data/spec/support/_dotenv.rb +2 -0
- data/spec/support/qualtrics.rb +5 -0
- data/spec/support/vcr.rb +11 -0
- metadata +330 -0
@@ -0,0 +1,209 @@
|
|
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: Category=Great+Category&Format=JSON&LibraryID=<QUALTRICS_LIBRARY_ID>&Name=Newest+Panel&Request=createPanel&Token=<QUALTRICS_TOKEN>&User=brookesidedev%40brookeside.com&Version=2.3
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Server:
|
24
|
+
- Apache
|
25
|
+
Cache-Control:
|
26
|
+
- max-age=315360000
|
27
|
+
Expires:
|
28
|
+
- Sat, 08 Feb 2025 19:16:01 GMT
|
29
|
+
P3p:
|
30
|
+
- CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
|
31
|
+
DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
|
32
|
+
Servershortname:
|
33
|
+
- w423
|
34
|
+
X-Cnection:
|
35
|
+
- close
|
36
|
+
X-Edgeconnect-Midmile-Rtt:
|
37
|
+
- '14'
|
38
|
+
- '9'
|
39
|
+
X-Edgeconnect-Origin-Mex-Latency:
|
40
|
+
- '264'
|
41
|
+
- '649'
|
42
|
+
Content-Length:
|
43
|
+
- '82'
|
44
|
+
Content-Type:
|
45
|
+
- application/json
|
46
|
+
Date:
|
47
|
+
- Wed, 11 Feb 2015 19:16:02 GMT
|
48
|
+
Connection:
|
49
|
+
- keep-alive
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":{\"PanelID\":\"ML_3eXCrvD0YGZtyp7\"}}"
|
53
|
+
http_version:
|
54
|
+
recorded_at: Wed, 11 Feb 2015 19:16:05 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: FirstName=Kevin&Format=JSON&LibraryID=<QUALTRICS_LIBRARY_ID>&PanelID=ML_3eXCrvD0YGZtyp7&Request=addRecipient&Token=<QUALTRICS_TOKEN>&User=brookesidedev%40brookeside.com&Version=2.3
|
61
|
+
headers:
|
62
|
+
User-Agent:
|
63
|
+
- Faraday v0.9.1
|
64
|
+
Content-Type:
|
65
|
+
- application/x-www-form-urlencoded
|
66
|
+
Accept-Encoding:
|
67
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
68
|
+
Accept:
|
69
|
+
- "*/*"
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Server:
|
76
|
+
- Apache
|
77
|
+
Cache-Control:
|
78
|
+
- max-age=315360000
|
79
|
+
Expires:
|
80
|
+
- Sat, 08 Feb 2025 19:16:02 GMT
|
81
|
+
P3p:
|
82
|
+
- CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
|
83
|
+
DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
|
84
|
+
Servershortname:
|
85
|
+
- w17
|
86
|
+
X-Cnection:
|
87
|
+
- close
|
88
|
+
X-Edgeconnect-Midmile-Rtt:
|
89
|
+
- '11'
|
90
|
+
- '21'
|
91
|
+
X-Edgeconnect-Origin-Mex-Latency:
|
92
|
+
- '290'
|
93
|
+
- '745'
|
94
|
+
Content-Length:
|
95
|
+
- '88'
|
96
|
+
Content-Type:
|
97
|
+
- application/json
|
98
|
+
Date:
|
99
|
+
- Wed, 11 Feb 2015 19:16:03 GMT
|
100
|
+
Connection:
|
101
|
+
- keep-alive
|
102
|
+
body:
|
103
|
+
encoding: UTF-8
|
104
|
+
string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":{\"RecipientID\":\"MLRP_8eKIWVhV1BcwsZL\"}}"
|
105
|
+
http_version:
|
106
|
+
recorded_at: Wed, 11 Feb 2015 19:16:06 GMT
|
107
|
+
- request:
|
108
|
+
method: get
|
109
|
+
uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php?Format=JSON&LibraryID=<QUALTRICS_LIBRARY_ID>&RecipientID=MLRP_8eKIWVhV1BcwsZL&Request=getRecipient&Token=<QUALTRICS_TOKEN>&User=<QUALTRICS_USER>&Version=2.3
|
110
|
+
body:
|
111
|
+
encoding: US-ASCII
|
112
|
+
string: ''
|
113
|
+
headers:
|
114
|
+
User-Agent:
|
115
|
+
- Faraday v0.9.1
|
116
|
+
Accept-Encoding:
|
117
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
118
|
+
Accept:
|
119
|
+
- "*/*"
|
120
|
+
response:
|
121
|
+
status:
|
122
|
+
code: 200
|
123
|
+
message: OK
|
124
|
+
headers:
|
125
|
+
Server:
|
126
|
+
- Apache
|
127
|
+
Cache-Control:
|
128
|
+
- max-age=315360000
|
129
|
+
Expires:
|
130
|
+
- Sat, 08 Feb 2025 19:16:03 GMT
|
131
|
+
P3p:
|
132
|
+
- CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
|
133
|
+
DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
|
134
|
+
Servershortname:
|
135
|
+
- w11
|
136
|
+
X-Cnection:
|
137
|
+
- close
|
138
|
+
X-Edgeconnect-Midmile-Rtt:
|
139
|
+
- '16'
|
140
|
+
- '19'
|
141
|
+
X-Edgeconnect-Origin-Mex-Latency:
|
142
|
+
- '194'
|
143
|
+
- '598'
|
144
|
+
Content-Length:
|
145
|
+
- '329'
|
146
|
+
Content-Type:
|
147
|
+
- application/json
|
148
|
+
Date:
|
149
|
+
- Wed, 11 Feb 2015 19:16:03 GMT
|
150
|
+
Connection:
|
151
|
+
- keep-alive
|
152
|
+
body:
|
153
|
+
encoding: UTF-8
|
154
|
+
string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":{\"Recipient\":{\"PanelMemberID\":\"MLRP_8eKIWVhV1BcwsZL\",\"PanelID\":\"ML_3eXCrvD0YGZtyp7\",\"FirstName\":\"Kevin\",\"LastName\":null,\"Email\":null,\"ExternalDataReference\":null,\"EmbeddedData\":null,\"Language\":null,\"RecipientResponseHistory\":null,\"RecipientEmailHistory\":null,\"Unsubscribed\":\"0\"}}}"
|
155
|
+
http_version:
|
156
|
+
recorded_at: Wed, 11 Feb 2015 19:16:06 GMT
|
157
|
+
- request:
|
158
|
+
method: post
|
159
|
+
uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php
|
160
|
+
body:
|
161
|
+
encoding: UTF-8
|
162
|
+
string: Format=JSON&LibraryID=<QUALTRICS_LIBRARY_ID>&PanelID=ML_3eXCrvD0YGZtyp7&Request=deletePanel&Token=<QUALTRICS_TOKEN>&User=brookesidedev%40brookeside.com&Version=2.3
|
163
|
+
headers:
|
164
|
+
User-Agent:
|
165
|
+
- Faraday v0.9.1
|
166
|
+
Content-Type:
|
167
|
+
- application/x-www-form-urlencoded
|
168
|
+
Accept-Encoding:
|
169
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
170
|
+
Accept:
|
171
|
+
- "*/*"
|
172
|
+
response:
|
173
|
+
status:
|
174
|
+
code: 200
|
175
|
+
message: OK
|
176
|
+
headers:
|
177
|
+
Server:
|
178
|
+
- Apache
|
179
|
+
Cache-Control:
|
180
|
+
- max-age=315360000
|
181
|
+
Expires:
|
182
|
+
- Sat, 08 Feb 2025 19:16:04 GMT
|
183
|
+
P3p:
|
184
|
+
- CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
|
185
|
+
DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
|
186
|
+
Servershortname:
|
187
|
+
- w11
|
188
|
+
X-Cnection:
|
189
|
+
- close
|
190
|
+
X-Edgeconnect-Midmile-Rtt:
|
191
|
+
- '14'
|
192
|
+
- '18'
|
193
|
+
X-Edgeconnect-Origin-Mex-Latency:
|
194
|
+
- '298'
|
195
|
+
- '734'
|
196
|
+
Content-Length:
|
197
|
+
- '66'
|
198
|
+
Content-Type:
|
199
|
+
- application/json
|
200
|
+
Date:
|
201
|
+
- Wed, 11 Feb 2015 19:16:04 GMT
|
202
|
+
Connection:
|
203
|
+
- keep-alive
|
204
|
+
body:
|
205
|
+
encoding: UTF-8
|
206
|
+
string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":{\"Success\":true}}"
|
207
|
+
http_version:
|
208
|
+
recorded_at: Wed, 11 Feb 2015 19:16:07 GMT
|
209
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,232 @@
|
|
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:25 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
|
+
- w423
|
55
|
+
X-Cnection:
|
56
|
+
- close
|
57
|
+
X-Edgeconnect-Midmile-Rtt:
|
58
|
+
- '15'
|
59
|
+
- '16'
|
60
|
+
X-Edgeconnect-Origin-Mex-Latency:
|
61
|
+
- '448'
|
62
|
+
- '878'
|
63
|
+
Content-Length:
|
64
|
+
- '83'
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
Date:
|
68
|
+
- Wed, 11 Feb 2015 19:16:26 GMT
|
69
|
+
Connection:
|
70
|
+
- keep-alive
|
71
|
+
body:
|
72
|
+
encoding: UTF-8
|
73
|
+
string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":{\"SurveyID\":\"SV_9u99a4953qTctrT\"}}"
|
74
|
+
http_version:
|
75
|
+
recorded_at: Wed, 11 Feb 2015 19:16:29 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=activateSurvey&SurveyID=SV_9u99a4953qTctrT&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:26 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
|
+
- w202
|
107
|
+
X-Cnection:
|
108
|
+
- close
|
109
|
+
X-Edgeconnect-Midmile-Rtt:
|
110
|
+
- '10'
|
111
|
+
- '25'
|
112
|
+
X-Edgeconnect-Origin-Mex-Latency:
|
113
|
+
- '503'
|
114
|
+
- '957'
|
115
|
+
Content-Length:
|
116
|
+
- '54'
|
117
|
+
Content-Type:
|
118
|
+
- application/json
|
119
|
+
Date:
|
120
|
+
- Wed, 11 Feb 2015 19:16:27 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:30 GMT
|
128
|
+
- request:
|
129
|
+
method: post
|
130
|
+
uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php
|
131
|
+
body:
|
132
|
+
encoding: UTF-8
|
133
|
+
string: Format=JSON&Request=deactivateSurvey&SurveyID=SV_9u99a4953qTctrT&Token=<QUALTRICS_TOKEN>&User=brookesidedev%40brookeside.com&Version=2.3
|
134
|
+
headers:
|
135
|
+
User-Agent:
|
136
|
+
- Faraday v0.9.1
|
137
|
+
Content-Type:
|
138
|
+
- application/x-www-form-urlencoded
|
139
|
+
Accept-Encoding:
|
140
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
141
|
+
Accept:
|
142
|
+
- "*/*"
|
143
|
+
response:
|
144
|
+
status:
|
145
|
+
code: 200
|
146
|
+
message: OK
|
147
|
+
headers:
|
148
|
+
Server:
|
149
|
+
- Apache
|
150
|
+
Cache-Control:
|
151
|
+
- max-age=315360000
|
152
|
+
Expires:
|
153
|
+
- Sat, 08 Feb 2025 19:16:27 GMT
|
154
|
+
P3p:
|
155
|
+
- CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
|
156
|
+
DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
|
157
|
+
Servershortname:
|
158
|
+
- w18
|
159
|
+
X-Cnection:
|
160
|
+
- close
|
161
|
+
X-Edgeconnect-Midmile-Rtt:
|
162
|
+
- '10'
|
163
|
+
- '13'
|
164
|
+
X-Edgeconnect-Origin-Mex-Latency:
|
165
|
+
- '383'
|
166
|
+
- '794'
|
167
|
+
Content-Length:
|
168
|
+
- '54'
|
169
|
+
Content-Type:
|
170
|
+
- application/json
|
171
|
+
Date:
|
172
|
+
- Wed, 11 Feb 2015 19:16:28 GMT
|
173
|
+
Connection:
|
174
|
+
- keep-alive
|
175
|
+
body:
|
176
|
+
encoding: UTF-8
|
177
|
+
string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":null}"
|
178
|
+
http_version:
|
179
|
+
recorded_at: Wed, 11 Feb 2015 19:16:31 GMT
|
180
|
+
- request:
|
181
|
+
method: post
|
182
|
+
uri: https://survey.qualtrics.com/WRAPI/ControlPanel/api.php
|
183
|
+
body:
|
184
|
+
encoding: UTF-8
|
185
|
+
string: Format=JSON&Request=deleteSurvey&SurveyID=SV_9u99a4953qTctrT&Token=<QUALTRICS_TOKEN>&User=brookesidedev%40brookeside.com&Version=2.3
|
186
|
+
headers:
|
187
|
+
User-Agent:
|
188
|
+
- Faraday v0.9.1
|
189
|
+
Content-Type:
|
190
|
+
- application/x-www-form-urlencoded
|
191
|
+
Accept-Encoding:
|
192
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
193
|
+
Accept:
|
194
|
+
- "*/*"
|
195
|
+
response:
|
196
|
+
status:
|
197
|
+
code: 200
|
198
|
+
message: OK
|
199
|
+
headers:
|
200
|
+
Server:
|
201
|
+
- Apache
|
202
|
+
Cache-Control:
|
203
|
+
- max-age=315360000
|
204
|
+
Expires:
|
205
|
+
- Sat, 08 Feb 2025 19:16:28 GMT
|
206
|
+
P3p:
|
207
|
+
- CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE", CP="CAO
|
208
|
+
DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"
|
209
|
+
Servershortname:
|
210
|
+
- w015
|
211
|
+
X-Cnection:
|
212
|
+
- close
|
213
|
+
X-Edgeconnect-Midmile-Rtt:
|
214
|
+
- '15'
|
215
|
+
- '9'
|
216
|
+
X-Edgeconnect-Origin-Mex-Latency:
|
217
|
+
- '471'
|
218
|
+
- '975'
|
219
|
+
Content-Length:
|
220
|
+
- '54'
|
221
|
+
Content-Type:
|
222
|
+
- application/json
|
223
|
+
Date:
|
224
|
+
- Wed, 11 Feb 2015 19:16:29 GMT
|
225
|
+
Connection:
|
226
|
+
- keep-alive
|
227
|
+
body:
|
228
|
+
encoding: UTF-8
|
229
|
+
string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":null}"
|
230
|
+
http_version:
|
231
|
+
recorded_at: Wed, 11 Feb 2015 19:16:32 GMT
|
232
|
+
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\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:18 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
|
+
- w7
|
55
|
+
X-Cnection:
|
56
|
+
- close
|
57
|
+
X-Edgeconnect-Midmile-Rtt:
|
58
|
+
- '12'
|
59
|
+
- '16'
|
60
|
+
X-Edgeconnect-Origin-Mex-Latency:
|
61
|
+
- '501'
|
62
|
+
- '902'
|
63
|
+
Content-Length:
|
64
|
+
- '83'
|
65
|
+
Content-Type:
|
66
|
+
- application/json
|
67
|
+
Date:
|
68
|
+
- Wed, 11 Feb 2015 19:16:18 GMT
|
69
|
+
Connection:
|
70
|
+
- keep-alive
|
71
|
+
body:
|
72
|
+
encoding: UTF-8
|
73
|
+
string: "{\"Meta\":{\"Status\":\"Success\",\"Debug\":\"\"},\"Result\":{\"SurveyID\":\"SV_3OapeFwO2LPy8CN\"}}"
|
74
|
+
http_version:
|
75
|
+
recorded_at: Wed, 11 Feb 2015 19:16:21 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_3OapeFwO2LPy8CN&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:19 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
|
+
- w541
|
107
|
+
X-Cnection:
|
108
|
+
- close
|
109
|
+
X-Edgeconnect-Midmile-Rtt:
|
110
|
+
- '11'
|
111
|
+
- '13'
|
112
|
+
X-Edgeconnect-Origin-Mex-Latency:
|
113
|
+
- '1076'
|
114
|
+
- '555'
|
115
|
+
Content-Length:
|
116
|
+
- '54'
|
117
|
+
Content-Type:
|
118
|
+
- application/json
|
119
|
+
Date:
|
120
|
+
- Wed, 11 Feb 2015 19:16:20 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:22 GMT
|
128
|
+
recorded_with: VCR 2.9.3
|