formstack-api 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/formstack/api/version.rb +1 -1
  3. data/lib/formstack/api.rb +169 -1
  4. data/spec/fs-logo.png +0 -0
  5. data/spec/support/vcr.rb +34 -7
  6. data/spec/vcr/Formstack_API/_copy_form/adds_COPY_at_the_end_of_the_form_name.yml +434 -0
  7. data/spec/vcr/Formstack_API/_create_field/creates_a_field_with_embeded_code.yml +43 -0
  8. data/spec/vcr/Formstack_API/_create_field/creates_a_text_field.yml +43 -0
  9. data/spec/vcr/Formstack_API/_delete_submission/deletes_a_submission.yml +142 -0
  10. data/spec/vcr/Formstack_API/_edit_submission_data/edits_a_submission_succesfully.yml +373 -0
  11. data/spec/vcr/Formstack_API/_edit_submission_data/raises_an_exception_if_fields_are_non_numeric.yml +66 -0
  12. data/spec/vcr/Formstack_API/_edit_submission_data/raises_an_exception_when_data_array_and_ids_don_t_match.yml +66 -0
  13. data/spec/vcr/Formstack_API/_edit_submission_data/raises_an_exception_when_data_array_and_ids_don_t_match_reversed.yml +66 -0
  14. data/spec/vcr/Formstack_API/_edit_submission_data/raises_an_exception_with_a_bad_timestamp.yml +66 -0
  15. data/spec/vcr/Formstack_API/_form_submissions/gets_submissions_default.yml +388 -245
  16. data/spec/vcr/Formstack_API/_form_submissions/raises_an_error_if_page_number_is_not_working.yml +79 -0
  17. data/spec/vcr/Formstack_API/_form_submissions/returns_data_if_specified.yml +245 -0
  18. data/spec/vcr/Formstack_API/_form_submissions/returns_no_data_by_default.yml +65 -0
  19. data/spec/vcr/Formstack_API/_get_submission_details/gets_the_right_submission_from_the_right_form.yml +43 -0
  20. data/spec/vcr/Formstack_API/_submit_form/creates_a_submission_into_a_form.yml +46 -0
  21. data/spec/vcr/Formstack_API/_submit_form/uploads_an_image.yml +44 -0
  22. data/spec/wrapper_spec.rb +217 -20
  23. metadata +32 -2
@@ -0,0 +1,142 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://www.formstack.com/api/v2/submission/171821341
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Bearer <ACCESS_TOKEN>
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Server:
18
+ - nginx
19
+ Date:
20
+ - Fri, 14 Nov 2014 13:41:56 GMT
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '32'
25
+ Connection:
26
+ - keep-alive
27
+ P3p:
28
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
29
+ DSP COR"
30
+ Set-Cookie:
31
+ - FormstackAdmin=eqftcqlhq6n906gem17ki3pn02; path=/api/; secure; HttpOnly
32
+ Cache-Control:
33
+ - no-cache
34
+ X-Robots-Tag:
35
+ - noindex, nofollow
36
+ body:
37
+ encoding: UTF-8
38
+ string: '{"success":"1","id":"171821341"}'
39
+ http_version:
40
+ recorded_at: Fri, 14 Nov 2014 13:41:56 GMT
41
+ - request:
42
+ method: get
43
+ uri: https://www.formstack.com/api/v2/form/<SUBMISSION_DETAILS_FORM_ID>/submission.json
44
+ body:
45
+ encoding: US-ASCII
46
+ string: ''
47
+ headers:
48
+ Authorization:
49
+ - Bearer <ACCESS_TOKEN>
50
+ response:
51
+ status:
52
+ code: 200
53
+ message: OK
54
+ headers:
55
+ Server:
56
+ - nginx
57
+ Date:
58
+ - Fri, 14 Nov 2014 13:42:35 GMT
59
+ Content-Type:
60
+ - application/json
61
+ Content-Length:
62
+ - '4293'
63
+ Connection:
64
+ - keep-alive
65
+ P3p:
66
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
67
+ DSP COR"
68
+ Set-Cookie:
69
+ - FormstackAdmin=siu478k4v07ijjlhfg9h03r0c1; path=/api/; secure; HttpOnly
70
+ Cache-Control:
71
+ - no-cache
72
+ X-Robots-Tag:
73
+ - noindex, nofollow
74
+ body:
75
+ encoding: UTF-8
76
+ string: '{"submissions":[{"id":"171821364","timestamp":"2014-11-13 13:43:44","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171821388","timestamp":"2014-11-13
77
+ 13:44:07","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171821406","timestamp":"2014-11-13
78
+ 13:44:21","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171822918","timestamp":"2014-11-13
79
+ 14:05:06","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171823092","timestamp":"2014-11-13
80
+ 14:07:17","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171823107","timestamp":"2014-11-13
81
+ 14:07:28","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171823163","timestamp":"2014-11-13
82
+ 14:08:11","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824009","timestamp":"2014-11-13
83
+ 14:18:50","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824066","timestamp":"2014-11-13
84
+ 14:19:28","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824379","timestamp":"2014-11-13
85
+ 14:23:00","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824395","timestamp":"2014-11-13
86
+ 14:23:09","user_agent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit\/537.36
87
+ (KHTML, like Gecko) Chrome\/38.0.2125.111 Safari\/537.36","remote_addr":"89.202.154.170","payment_status":"","latitude":"47","longitude":"8","read":"1"},{"id":"171824436","timestamp":"2014-11-13
88
+ 14:23:43","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824500","timestamp":"2014-11-13
89
+ 14:24:34","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824576","timestamp":"2014-11-13
90
+ 14:25:33","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824682","timestamp":"2014-11-13
91
+ 14:26:30","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824794","timestamp":"2014-11-13
92
+ 14:27:45","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824845","timestamp":"2014-11-13
93
+ 14:28:18","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824938","timestamp":"2014-11-13
94
+ 14:29:04","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171825201","timestamp":"2014-11-13
95
+ 14:32:20","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171825451","timestamp":"2014-11-13
96
+ 14:34:48","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826184","timestamp":"2014-11-13
97
+ 14:42:23","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826216","timestamp":"2014-11-13
98
+ 14:42:44","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826235","timestamp":"2014-11-13
99
+ 14:42:56","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826254","timestamp":"2014-11-13
100
+ 14:43:09","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826404","timestamp":"2014-11-13
101
+ 14:44:43","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"}],"total":"76","pages":4,"pretty_field_id":"28706107"}'
102
+ http_version:
103
+ recorded_at: Fri, 14 Nov 2014 13:42:34 GMT
104
+ - request:
105
+ method: delete
106
+ uri: https://www.formstack.com/api/v2/submission/171821364
107
+ body:
108
+ encoding: US-ASCII
109
+ string: ''
110
+ headers:
111
+ Authorization:
112
+ - Bearer <ACCESS_TOKEN>
113
+ response:
114
+ status:
115
+ code: 200
116
+ message: OK
117
+ headers:
118
+ Server:
119
+ - nginx
120
+ Date:
121
+ - Fri, 14 Nov 2014 13:42:35 GMT
122
+ Content-Type:
123
+ - application/json
124
+ Content-Length:
125
+ - '32'
126
+ Connection:
127
+ - keep-alive
128
+ P3p:
129
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
130
+ DSP COR"
131
+ Set-Cookie:
132
+ - FormstackAdmin=6mecp8fp1baaemils2vj2qvmm7; path=/api/; secure; HttpOnly
133
+ Cache-Control:
134
+ - no-cache
135
+ X-Robots-Tag:
136
+ - noindex, nofollow
137
+ body:
138
+ encoding: UTF-8
139
+ string: '{"success":"1","id":"171821364"}'
140
+ http_version:
141
+ recorded_at: Fri, 14 Nov 2014 13:42:35 GMT
142
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,373 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.formstack.com/api/v2/submission/.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: read=0&field_<SUBMISSION_DETAILS_ID>=test2014-11-14%2013%3A23%3A04%20%2B0100&field_<EDIT_SUBMISSION_FIELD_ID>[first]=test2014-11-14%2013%3A23%3A04%20%2B0100-first&field_<EDIT_SUBMISSION_FIELD_ID>[last]=test2014-11-14%2013%3A23%3A04%20%2B0100-last
9
+ headers:
10
+ Authorization:
11
+ - Bearer <ACCESS_TOKEN>
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Server:
18
+ - nginx
19
+ Date:
20
+ - Fri, 14 Nov 2014 12:23:05 GMT
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '77'
25
+ Connection:
26
+ - keep-alive
27
+ P3p:
28
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
29
+ DSP COR"
30
+ Set-Cookie:
31
+ - FormstackAdmin=hec8bqhlpuqa51eosrh1s0t5a1; path=/api/; secure; HttpOnly
32
+ Cache-Control:
33
+ - no-cache
34
+ X-Robots-Tag:
35
+ - noindex, nofollow
36
+ body:
37
+ encoding: UTF-8
38
+ string: '{"status":"error","error":"Creating a submission is not currently supported"}'
39
+ http_version:
40
+ recorded_at: Fri, 14 Nov 2014 12:23:05 GMT
41
+ - request:
42
+ method: post
43
+ uri: https://www.formstack.com/api/v2/submission/171821341.json
44
+ body:
45
+ encoding: UTF-8
46
+ string: read=0&field_<EDIT_SUBMISSION_FIELD_ID>[first]=test2014-11-14%2013%3A35%3A52%20%2B0100-first&field_<EDIT_SUBMISSION_FIELD_ID>[last]=test2014-11-14%2013%3A35%3A52%20%2B0100-last
47
+ headers:
48
+ Authorization:
49
+ - Bearer <ACCESS_TOKEN>
50
+ response:
51
+ status:
52
+ code: 200
53
+ message: OK
54
+ headers:
55
+ Server:
56
+ - nginx
57
+ Date:
58
+ - Fri, 14 Nov 2014 12:35:53 GMT
59
+ Content-Type:
60
+ - application/json
61
+ Content-Length:
62
+ - '77'
63
+ Connection:
64
+ - keep-alive
65
+ P3p:
66
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
67
+ DSP COR"
68
+ Set-Cookie:
69
+ - FormstackAdmin=4jcmnn31v29vgcclu5igrjas56; path=/api/; secure; HttpOnly
70
+ Cache-Control:
71
+ - no-cache
72
+ X-Robots-Tag:
73
+ - noindex, nofollow
74
+ body:
75
+ encoding: UTF-8
76
+ string: '{"status":"error","error":"Creating a submission is not currently supported"}'
77
+ http_version:
78
+ recorded_at: Fri, 14 Nov 2014 12:35:53 GMT
79
+ - request:
80
+ method: put
81
+ uri: https://www.formstack.com/api/v2/submission/171821341.json
82
+ body:
83
+ encoding: UTF-8
84
+ string: read=0&field_<EDIT_SUBMISSION_FIELD_ID>[first]=test2014-11-14%2014%3A41%3A52%20%2B0100-first&field_<EDIT_SUBMISSION_FIELD_ID>[last]=test2014-11-14%2014%3A41%3A52%20%2B0100-last
85
+ headers:
86
+ Authorization:
87
+ - Bearer <ACCESS_TOKEN>
88
+ response:
89
+ status:
90
+ code: 200
91
+ message: OK
92
+ headers:
93
+ Server:
94
+ - nginx
95
+ Date:
96
+ - Fri, 14 Nov 2014 13:41:53 GMT
97
+ Content-Type:
98
+ - application/json
99
+ Content-Length:
100
+ - '32'
101
+ Connection:
102
+ - keep-alive
103
+ P3p:
104
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
105
+ DSP COR"
106
+ Set-Cookie:
107
+ - FormstackAdmin=scri11n1hg7bf8aigtsu3lhac5; path=/api/; secure; HttpOnly
108
+ Cache-Control:
109
+ - no-cache
110
+ X-Robots-Tag:
111
+ - noindex, nofollow
112
+ body:
113
+ encoding: UTF-8
114
+ string: '{"success":"1","id":"171821341"}'
115
+ http_version:
116
+ recorded_at: Fri, 14 Nov 2014 13:41:52 GMT
117
+ - request:
118
+ method: get
119
+ uri: https://www.formstack.com/api/v2/submission/171821341.json
120
+ body:
121
+ encoding: US-ASCII
122
+ string: ''
123
+ headers:
124
+ Authorization:
125
+ - Bearer <ACCESS_TOKEN>
126
+ response:
127
+ status:
128
+ code: 200
129
+ message: OK
130
+ headers:
131
+ Server:
132
+ - nginx
133
+ Date:
134
+ - Fri, 14 Nov 2014 13:41:53 GMT
135
+ Content-Type:
136
+ - application/json
137
+ Content-Length:
138
+ - '327'
139
+ Connection:
140
+ - keep-alive
141
+ P3p:
142
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
143
+ DSP COR"
144
+ Set-Cookie:
145
+ - FormstackAdmin=niqt6s1bm80o9ldl87toic3vf7; path=/api/; secure; HttpOnly
146
+ Cache-Control:
147
+ - no-cache
148
+ X-Robots-Tag:
149
+ - noindex, nofollow
150
+ body:
151
+ encoding: UTF-8
152
+ string: '{"id":"171821341","timestamp":"2014-11-13 13:43:25","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","form":"<SUBMISSION_DETAILS_FORM_ID>","latitude":null,"longitude":null,"data":[{"field":"<EDIT_SUBMISSION_FIELD_ID>","value":"first
153
+ = test2014-11-14 14:41:52 +0100-first\nlast = test2014-11-14 14:41:52 +0100-last\n"}],"pretty_field_id":"28706107"}'
154
+ http_version:
155
+ recorded_at: Fri, 14 Nov 2014 13:41:53 GMT
156
+ - request:
157
+ method: put
158
+ uri: https://www.formstack.com/api/v2/submission/171821364.json
159
+ body:
160
+ encoding: UTF-8
161
+ string: read=0&field_<EDIT_SUBMISSION_FIELD_ID>[first]=test2014-11-14%2014%3A42%3A30%20%2B0100-first&field_<EDIT_SUBMISSION_FIELD_ID>[last]=test2014-11-14%2014%3A42%3A30%20%2B0100-last
162
+ headers:
163
+ Authorization:
164
+ - Bearer <ACCESS_TOKEN>
165
+ response:
166
+ status:
167
+ code: 200
168
+ message: OK
169
+ headers:
170
+ Server:
171
+ - nginx
172
+ Date:
173
+ - Fri, 14 Nov 2014 13:42:32 GMT
174
+ Content-Type:
175
+ - application/json
176
+ Content-Length:
177
+ - '32'
178
+ Connection:
179
+ - keep-alive
180
+ P3p:
181
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
182
+ DSP COR"
183
+ Set-Cookie:
184
+ - FormstackAdmin=fm6iiij37cgarmc0d247v0slq1; path=/api/; secure; HttpOnly
185
+ Cache-Control:
186
+ - no-cache
187
+ X-Robots-Tag:
188
+ - noindex, nofollow
189
+ body:
190
+ encoding: UTF-8
191
+ string: '{"success":"1","id":"171821364"}'
192
+ http_version:
193
+ recorded_at: Fri, 14 Nov 2014 13:42:31 GMT
194
+ - request:
195
+ method: get
196
+ uri: https://www.formstack.com/api/v2/submission/171821364.json
197
+ body:
198
+ encoding: US-ASCII
199
+ string: ''
200
+ headers:
201
+ Authorization:
202
+ - Bearer <ACCESS_TOKEN>
203
+ response:
204
+ status:
205
+ code: 200
206
+ message: OK
207
+ headers:
208
+ Server:
209
+ - nginx
210
+ Date:
211
+ - Fri, 14 Nov 2014 13:42:32 GMT
212
+ Content-Type:
213
+ - application/json
214
+ Content-Length:
215
+ - '327'
216
+ Connection:
217
+ - keep-alive
218
+ P3p:
219
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
220
+ DSP COR"
221
+ Set-Cookie:
222
+ - FormstackAdmin=lbuppjro7dsuevjbfd1lim62r2; path=/api/; secure; HttpOnly
223
+ Cache-Control:
224
+ - no-cache
225
+ X-Robots-Tag:
226
+ - noindex, nofollow
227
+ body:
228
+ encoding: UTF-8
229
+ string: '{"id":"171821364","timestamp":"2014-11-13 13:43:44","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","form":"<SUBMISSION_DETAILS_FORM_ID>","latitude":null,"longitude":null,"data":[{"field":"<EDIT_SUBMISSION_FIELD_ID>","value":"first
230
+ = test2014-11-14 14:42:30 +0100-first\nlast = test2014-11-14 14:42:30 +0100-last\n"}],"pretty_field_id":"28706107"}'
231
+ http_version:
232
+ recorded_at: Fri, 14 Nov 2014 13:42:32 GMT
233
+ - request:
234
+ method: get
235
+ uri: https://www.formstack.com/api/v2/form/<SUBMISSION_DETAILS_FORM_ID>/submission.json
236
+ body:
237
+ encoding: US-ASCII
238
+ string: ''
239
+ headers:
240
+ Authorization:
241
+ - Bearer <ACCESS_TOKEN>
242
+ response:
243
+ status:
244
+ code: 200
245
+ message: OK
246
+ headers:
247
+ Server:
248
+ - nginx
249
+ Date:
250
+ - Fri, 14 Nov 2014 13:43:30 GMT
251
+ Content-Type:
252
+ - application/json
253
+ Content-Length:
254
+ - '4293'
255
+ Connection:
256
+ - keep-alive
257
+ P3p:
258
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
259
+ DSP COR"
260
+ Set-Cookie:
261
+ - FormstackAdmin=qpqocs6pm4tmb9q9l087eu3hr5; path=/api/; secure; HttpOnly
262
+ Cache-Control:
263
+ - no-cache
264
+ X-Robots-Tag:
265
+ - noindex, nofollow
266
+ body:
267
+ encoding: UTF-8
268
+ string: '{"submissions":[{"id":"171821388","timestamp":"2014-11-13 13:44:07","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171821406","timestamp":"2014-11-13
269
+ 13:44:21","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171822918","timestamp":"2014-11-13
270
+ 14:05:06","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171823092","timestamp":"2014-11-13
271
+ 14:07:17","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171823107","timestamp":"2014-11-13
272
+ 14:07:28","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171823163","timestamp":"2014-11-13
273
+ 14:08:11","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824009","timestamp":"2014-11-13
274
+ 14:18:50","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824066","timestamp":"2014-11-13
275
+ 14:19:28","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824379","timestamp":"2014-11-13
276
+ 14:23:00","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824395","timestamp":"2014-11-13
277
+ 14:23:09","user_agent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit\/537.36
278
+ (KHTML, like Gecko) Chrome\/38.0.2125.111 Safari\/537.36","remote_addr":"89.202.154.170","payment_status":"","latitude":"47","longitude":"8","read":"1"},{"id":"171824436","timestamp":"2014-11-13
279
+ 14:23:43","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824500","timestamp":"2014-11-13
280
+ 14:24:34","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824576","timestamp":"2014-11-13
281
+ 14:25:33","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824682","timestamp":"2014-11-13
282
+ 14:26:30","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824794","timestamp":"2014-11-13
283
+ 14:27:45","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824845","timestamp":"2014-11-13
284
+ 14:28:18","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824938","timestamp":"2014-11-13
285
+ 14:29:04","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171825201","timestamp":"2014-11-13
286
+ 14:32:20","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171825451","timestamp":"2014-11-13
287
+ 14:34:48","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826184","timestamp":"2014-11-13
288
+ 14:42:23","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826216","timestamp":"2014-11-13
289
+ 14:42:44","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826235","timestamp":"2014-11-13
290
+ 14:42:56","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826254","timestamp":"2014-11-13
291
+ 14:43:09","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826404","timestamp":"2014-11-13
292
+ 14:44:43","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826640","timestamp":"2014-11-13
293
+ 14:47:27","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"}],"total":"75","pages":3,"pretty_field_id":"28706107"}'
294
+ http_version:
295
+ recorded_at: Fri, 14 Nov 2014 13:43:29 GMT
296
+ - request:
297
+ method: put
298
+ uri: https://www.formstack.com/api/v2/submission/171821388.json
299
+ body:
300
+ encoding: UTF-8
301
+ string: read=0&field_<EDIT_SUBMISSION_FIELD_ID>[first]=test2014-11-14%2014%3A43%3A29%20%2B0100-first&field_<EDIT_SUBMISSION_FIELD_ID>[last]=test2014-11-14%2014%3A43%3A29%20%2B0100-last
302
+ headers:
303
+ Authorization:
304
+ - Bearer <ACCESS_TOKEN>
305
+ response:
306
+ status:
307
+ code: 200
308
+ message: OK
309
+ headers:
310
+ Server:
311
+ - nginx
312
+ Date:
313
+ - Fri, 14 Nov 2014 13:43:31 GMT
314
+ Content-Type:
315
+ - application/json
316
+ Content-Length:
317
+ - '32'
318
+ Connection:
319
+ - keep-alive
320
+ P3p:
321
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
322
+ DSP COR"
323
+ Set-Cookie:
324
+ - FormstackAdmin=vsejkq2i8em7buh7q1eg1ucpl7; path=/api/; secure; HttpOnly
325
+ Cache-Control:
326
+ - no-cache
327
+ X-Robots-Tag:
328
+ - noindex, nofollow
329
+ body:
330
+ encoding: UTF-8
331
+ string: '{"success":"1","id":"171821388"}'
332
+ http_version:
333
+ recorded_at: Fri, 14 Nov 2014 13:43:30 GMT
334
+ - request:
335
+ method: get
336
+ uri: https://www.formstack.com/api/v2/submission/171821388.json
337
+ body:
338
+ encoding: US-ASCII
339
+ string: ''
340
+ headers:
341
+ Authorization:
342
+ - Bearer <ACCESS_TOKEN>
343
+ response:
344
+ status:
345
+ code: 200
346
+ message: OK
347
+ headers:
348
+ Server:
349
+ - nginx
350
+ Date:
351
+ - Fri, 14 Nov 2014 13:43:31 GMT
352
+ Content-Type:
353
+ - application/json
354
+ Content-Length:
355
+ - '327'
356
+ Connection:
357
+ - keep-alive
358
+ P3p:
359
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
360
+ DSP COR"
361
+ Set-Cookie:
362
+ - FormstackAdmin=bcn43h2uarodqau0esofvgtfp4; path=/api/; secure; HttpOnly
363
+ Cache-Control:
364
+ - no-cache
365
+ X-Robots-Tag:
366
+ - noindex, nofollow
367
+ body:
368
+ encoding: UTF-8
369
+ string: '{"id":"171821388","timestamp":"2014-11-13 13:44:07","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","form":"<SUBMISSION_DETAILS_FORM_ID>","latitude":null,"longitude":null,"data":[{"field":"<EDIT_SUBMISSION_FIELD_ID>","value":"first
370
+ = test2014-11-14 14:43:29 +0100-first\nlast = test2014-11-14 14:43:29 +0100-last\n"}],"pretty_field_id":"28706107"}'
371
+ http_version:
372
+ recorded_at: Fri, 14 Nov 2014 13:43:30 GMT
373
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,66 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.formstack.com/api/v2/form/<SUBMISSION_DETAILS_FORM_ID>/submission.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Bearer <ACCESS_TOKEN>
12
+ response:
13
+ status:
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ Server:
18
+ - nginx
19
+ Date:
20
+ - Fri, 14 Nov 2014 13:43:33 GMT
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '4293'
25
+ Connection:
26
+ - keep-alive
27
+ P3p:
28
+ - CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI
29
+ DSP COR"
30
+ Set-Cookie:
31
+ - FormstackAdmin=butofevt5c01d5hgaasvrvdqv0; path=/api/; secure; HttpOnly
32
+ Cache-Control:
33
+ - no-cache
34
+ X-Robots-Tag:
35
+ - noindex, nofollow
36
+ body:
37
+ encoding: UTF-8
38
+ string: '{"submissions":[{"id":"171821388","timestamp":"2014-11-13 13:44:07","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171821406","timestamp":"2014-11-13
39
+ 13:44:21","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171822918","timestamp":"2014-11-13
40
+ 14:05:06","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171823092","timestamp":"2014-11-13
41
+ 14:07:17","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171823107","timestamp":"2014-11-13
42
+ 14:07:28","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171823163","timestamp":"2014-11-13
43
+ 14:08:11","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824009","timestamp":"2014-11-13
44
+ 14:18:50","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824066","timestamp":"2014-11-13
45
+ 14:19:28","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824379","timestamp":"2014-11-13
46
+ 14:23:00","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824395","timestamp":"2014-11-13
47
+ 14:23:09","user_agent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit\/537.36
48
+ (KHTML, like Gecko) Chrome\/38.0.2125.111 Safari\/537.36","remote_addr":"89.202.154.170","payment_status":"","latitude":"47","longitude":"8","read":"1"},{"id":"171824436","timestamp":"2014-11-13
49
+ 14:23:43","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824500","timestamp":"2014-11-13
50
+ 14:24:34","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824576","timestamp":"2014-11-13
51
+ 14:25:33","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824682","timestamp":"2014-11-13
52
+ 14:26:30","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824794","timestamp":"2014-11-13
53
+ 14:27:45","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824845","timestamp":"2014-11-13
54
+ 14:28:18","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171824938","timestamp":"2014-11-13
55
+ 14:29:04","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171825201","timestamp":"2014-11-13
56
+ 14:32:20","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171825451","timestamp":"2014-11-13
57
+ 14:34:48","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826184","timestamp":"2014-11-13
58
+ 14:42:23","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826216","timestamp":"2014-11-13
59
+ 14:42:44","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826235","timestamp":"2014-11-13
60
+ 14:42:56","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826254","timestamp":"2014-11-13
61
+ 14:43:09","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826404","timestamp":"2014-11-13
62
+ 14:44:43","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171826640","timestamp":"2014-11-13
63
+ 14:47:27","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"}],"total":"75","pages":3,"pretty_field_id":"28706107"}'
64
+ http_version:
65
+ recorded_at: Fri, 14 Nov 2014 13:43:33 GMT
66
+ recorded_with: VCR 2.9.3