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,79 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.formstack.com/api/v2/form/<FORM_ID>/submission.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: page=1&per_page=1&sort=DESC
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
+ - Mon, 17 Nov 2014 09:42:17 GMT
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '246'
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=iii6d3dvi95unqghf4pfek1on0; 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":"172234315","timestamp":"2014-11-17 09:14:34","user_agent":"curl\/7.37.1","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"}],"total":"79","pages":79,"pretty_field_id":"28706107"}'
39
+ http_version:
40
+ recorded_at: Mon, 17 Nov 2014 09:42:16 GMT
41
+ - request:
42
+ method: get
43
+ uri: https://www.formstack.com/api/v2/form/<FORM_ID>/submission.json
44
+ body:
45
+ encoding: UTF-8
46
+ string: page=2&per_page=1&sort=DESC
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
+ - Mon, 17 Nov 2014 09:42:17 GMT
59
+ Content-Type:
60
+ - application/json
61
+ Content-Length:
62
+ - '246'
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=0iv2gmuvjemmfr50a62spdtqn3; 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":"172234312","timestamp":"2014-11-17 09:14:27","user_agent":"curl\/7.37.1","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"}],"total":"79","pages":79,"pretty_field_id":"28706107"}'
77
+ http_version:
78
+ recorded_at: Mon, 17 Nov 2014 09:42:17 GMT
79
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,245 @@
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: UTF-8
8
+ string: page=1&per_page=100&sort=DESC&data=true
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 15:12:39 GMT
21
+ Content-Type:
22
+ - application/json
23
+ Transfer-Encoding:
24
+ - chunked
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=bdcf1bns4neh7bq8i5gthiu5b3; 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":"171943139","timestamp":"2014-11-14 10:51:14","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
39
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
40
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
41
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171943131","timestamp":"2014-11-14
42
+ 10:51:03","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
43
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
44
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
45
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171943088","timestamp":"2014-11-14
46
+ 10:50:03","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
47
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
48
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
49
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171943075","timestamp":"2014-11-14
50
+ 10:49:50","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
51
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
52
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
53
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"<SUBMISSION_DETAILS_ID>","timestamp":"2014-11-14
54
+ 08:56:33","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
55
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
56
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
57
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171836337","timestamp":"2014-11-13
58
+ 16:06:12","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
59
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
60
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
61
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171835825","timestamp":"2014-11-13
62
+ 16:02:35","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
63
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
64
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
65
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171835746","timestamp":"2014-11-13
66
+ 16:02:02","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
67
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
68
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
69
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171835284","timestamp":"2014-11-13
70
+ 15:58:42","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
71
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
72
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
73
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171834791","timestamp":"2014-11-13
74
+ 15:54:53","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
75
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
76
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
77
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171833957","timestamp":"2014-11-13
78
+ 15:49:19","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
79
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
80
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
81
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171833937","timestamp":"2014-11-13
82
+ 15:49:06","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
83
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
84
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
85
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171833903","timestamp":"2014-11-13
86
+ 15:48:50","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
87
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
88
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
89
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171833858","timestamp":"2014-11-13
90
+ 15:48:30","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
91
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
92
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
93
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171833785","timestamp":"2014-11-13
94
+ 15:48:01","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
95
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
96
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
97
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171833715","timestamp":"2014-11-13
98
+ 15:47:25","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
99
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
100
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
101
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171833676","timestamp":"2014-11-13
102
+ 15:47:08","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
103
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
104
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
105
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171833650","timestamp":"2014-11-13
106
+ 15:46:57","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
107
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
108
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
109
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171833601","timestamp":"2014-11-13
110
+ 15:46:32","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
111
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
112
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
113
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171833560","timestamp":"2014-11-13
114
+ 15:46:13","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
115
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
116
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
117
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171833521","timestamp":"2014-11-13
118
+ 15:45:57","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
119
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
120
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
121
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832897","timestamp":"2014-11-13
122
+ 15:41:01","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
123
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
124
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
125
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832869","timestamp":"2014-11-13
126
+ 15:40:49","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
127
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
128
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
129
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832827","timestamp":"2014-11-13
130
+ 15:40:31","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
131
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
132
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
133
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832788","timestamp":"2014-11-13
134
+ 15:40:15","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
135
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
136
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
137
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832736","timestamp":"2014-11-13
138
+ 15:39:42","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
139
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
140
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
141
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832712","timestamp":"2014-11-13
142
+ 15:39:33","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
143
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
144
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
145
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832691","timestamp":"2014-11-13
146
+ 15:39:24","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
147
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
148
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
149
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832641","timestamp":"2014-11-13
150
+ 15:38:53","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
151
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
152
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
153
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832523","timestamp":"2014-11-13
154
+ 15:37:55","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
155
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
156
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
157
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832467","timestamp":"2014-11-13
158
+ 15:37:28","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
159
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
160
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
161
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832356","timestamp":"2014-11-13
162
+ 15:36:30","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
163
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
164
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
165
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832331","timestamp":"2014-11-13
166
+ 15:36:14","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
167
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
168
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
169
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832290","timestamp":"2014-11-13
170
+ 15:35:57","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
171
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
172
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
173
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832214","timestamp":"2014-11-13
174
+ 15:35:18","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
175
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
176
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
177
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171832180","timestamp":"2014-11-13
178
+ 15:35:05","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
179
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
180
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
181
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171831918","timestamp":"2014-11-13
182
+ 15:33:00","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
183
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
184
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
185
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171831885","timestamp":"2014-11-13
186
+ 15:32:45","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
187
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
188
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
189
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171831685","timestamp":"2014-11-13
190
+ 15:31:11","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
191
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
192
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
193
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171831649","timestamp":"2014-11-13
194
+ 15:30:56","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
195
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
196
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
197
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171831515","timestamp":"2014-11-13
198
+ 15:29:50","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
199
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
200
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
201
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171830939","timestamp":"2014-11-13
202
+ 15:25:48","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
203
+ Answer","type":"text","value":"short-answer-test"},"28706107":{"field":28706107,"label":"Name","type":"name","value":"first
204
+ = first-test\nlast = last-test\n"},"28706112":{"field":28706112,"label":"Long
205
+ Answer","type":"textarea","value":"this is a long answer field"}}},{"id":"171829414","timestamp":"2014-11-13
206
+ 15:13:22","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171829376","timestamp":"2014-11-13
207
+ 15:13:06","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171828982","timestamp":"2014-11-13
208
+ 15:09:46","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171828933","timestamp":"2014-11-13
209
+ 15:09:26","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171828897","timestamp":"2014-11-13
210
+ 15:09:11","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171828842","timestamp":"2014-11-13
211
+ 15:08:38","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171828038","timestamp":"2014-11-13
212
+ 15:01:25","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171828000","timestamp":"2014-11-13
213
+ 15:01:05","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171826640","timestamp":"2014-11-13
214
+ 14:47:27","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171826404","timestamp":"2014-11-13
215
+ 14:44:43","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171826254","timestamp":"2014-11-13
216
+ 14:43:09","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171826235","timestamp":"2014-11-13
217
+ 14:42:56","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171826216","timestamp":"2014-11-13
218
+ 14:42:44","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171826184","timestamp":"2014-11-13
219
+ 14:42:23","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171825451","timestamp":"2014-11-13
220
+ 14:34:48","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171825201","timestamp":"2014-11-13
221
+ 14:32:20","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171824938","timestamp":"2014-11-13
222
+ 14:29:04","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171824845","timestamp":"2014-11-13
223
+ 14:28:18","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171824794","timestamp":"2014-11-13
224
+ 14:27:45","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171824682","timestamp":"2014-11-13
225
+ 14:26:30","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171824576","timestamp":"2014-11-13
226
+ 14:25:33","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171824500","timestamp":"2014-11-13
227
+ 14:24:34","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171824436","timestamp":"2014-11-13
228
+ 14:23:43","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171824395","timestamp":"2014-11-13
229
+ 14:23:09","user_agent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit\/537.36
230
+ (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","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
231
+ Answer","type":"text","value":"manual test"}}},{"id":"171824379","timestamp":"2014-11-13
232
+ 14:23:00","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171824066","timestamp":"2014-11-13
233
+ 14:19:28","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171824009","timestamp":"2014-11-13
234
+ 14:18:50","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171823163","timestamp":"2014-11-13
235
+ 14:08:11","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171823107","timestamp":"2014-11-13
236
+ 14:07:28","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171823092","timestamp":"2014-11-13
237
+ 14:07:17","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171822918","timestamp":"2014-11-13
238
+ 14:05:06","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171821406","timestamp":"2014-11-13
239
+ 13:44:21","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":[]},{"id":"171821388","timestamp":"2014-11-13
240
+ 13:44:07","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1","data":{"<EDIT_SUBMISSION_FIELD_ID>":{"field":<EDIT_SUBMISSION_FIELD_ID>,"label":"Short
241
+ Answer","type":"text","value":"first = test2014-11-14 14:43:29 +0100-first\nlast
242
+ = test2014-11-14 14:43:29 +0100-last\n"}}}],"total":"75","pages":1,"pretty_field_id":"28706107"}'
243
+ http_version:
244
+ recorded_at: Fri, 14 Nov 2014 15:12:38 GMT
245
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,65 @@
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: UTF-8
8
+ string: page=1&per_page=25&sort=DESC
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 15:12:38 GMT
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '4169'
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=0jqf2nqcdib3o0cl2kqfnfdqa2; 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":"171943139","timestamp":"2014-11-14 10:51:14","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171943131","timestamp":"2014-11-14
39
+ 10:51:03","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171943088","timestamp":"2014-11-14
40
+ 10:50:03","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171943075","timestamp":"2014-11-14
41
+ 10:49:50","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"<SUBMISSION_DETAILS_ID>","timestamp":"2014-11-14
42
+ 08:56:33","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171836337","timestamp":"2014-11-13
43
+ 16:06:12","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171835825","timestamp":"2014-11-13
44
+ 16:02:35","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171835746","timestamp":"2014-11-13
45
+ 16:02:02","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171835284","timestamp":"2014-11-13
46
+ 15:58:42","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171834791","timestamp":"2014-11-13
47
+ 15:54:53","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171833957","timestamp":"2014-11-13
48
+ 15:49:19","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171833937","timestamp":"2014-11-13
49
+ 15:49:06","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171833903","timestamp":"2014-11-13
50
+ 15:48:50","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171833858","timestamp":"2014-11-13
51
+ 15:48:30","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171833785","timestamp":"2014-11-13
52
+ 15:48:01","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171833715","timestamp":"2014-11-13
53
+ 15:47:25","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171833676","timestamp":"2014-11-13
54
+ 15:47:08","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171833650","timestamp":"2014-11-13
55
+ 15:46:57","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171833601","timestamp":"2014-11-13
56
+ 15:46:32","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171833560","timestamp":"2014-11-13
57
+ 15:46:13","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171833521","timestamp":"2014-11-13
58
+ 15:45:57","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171832897","timestamp":"2014-11-13
59
+ 15:41:01","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171832869","timestamp":"2014-11-13
60
+ 15:40:49","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171832827","timestamp":"2014-11-13
61
+ 15:40:31","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"},{"id":"171832788","timestamp":"2014-11-13
62
+ 15:40:15","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","latitude":null,"longitude":null,"read":"1"}],"total":"75","pages":3,"pretty_field_id":"28706107"}'
63
+ http_version:
64
+ recorded_at: Fri, 14 Nov 2014 15:12:37 GMT
65
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,43 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://www.formstack.com/api/v2/submission/<SUBMISSION_DETAILS_ID>.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 10:33:04 GMT
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '385'
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=mbgis5r0lu9olmkb2e51p8t7a1; 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: '{"id":"<SUBMISSION_DETAILS_ID>","timestamp":"2014-11-14 08:56:33","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","form":"<SUBMISSION_DETAILS_FORM_ID>","latitude":null,"longitude":null,"data":[{"field":"28705506","value":"short-answer-test"},{"field":"28706107","value":"first
39
+ = first-test\nlast = last-test\n"},{"field":"28706112","value":"this is a
40
+ long answer field"}],"pretty_field_id":"28706107"}'
41
+ http_version:
42
+ recorded_at: Fri, 14 Nov 2014 10:33:03 GMT
43
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.formstack.com/api/v2/form/<SUBMISSION_DETAILS_FORM_ID>/submission.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: read=0&field_28705506=short-answer-test&field_28706107[first]=first-test&field_28706107[last]=last-test&field_28706112=this%20is%20a%20long%20answer%20field
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 09:51:14 GMT
21
+ Content-Type:
22
+ - application/json
23
+ Content-Length:
24
+ - '442'
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=tnl1ed1ttf34nrfeggemndrq64; path=/api/; secure; HttpOnly
32
+ Location:
33
+ - https://www.formstack.com/api/v2/form/<SUBMISSION_DETAILS_FORM_ID>/submission/171943139.json
34
+ Cache-Control:
35
+ - no-cache
36
+ X-Robots-Tag:
37
+ - noindex, nofollow
38
+ body:
39
+ encoding: UTF-8
40
+ string: '{"id":"171943139","message":"<p>The form was submitted successfully.<\/p>","timestamp":"2014-11-14
41
+ 10:51:14","user_agent":"","remote_addr":"89.202.154.170","payment_status":"","form":"<SUBMISSION_DETAILS_FORM_ID>","latitude":null,"longitude":null,"data":[{"field":"28705506","value":"short-answer-test"},{"field":"28706107","value":"first
42
+ = first-test\nlast = last-test\n"},{"field":"28706112","value":"this is a
43
+ long answer field"}],"pretty_field_id":"28706107"}'
44
+ http_version:
45
+ recorded_at: Fri, 14 Nov 2014 09:51:14 GMT
46
+ recorded_with: VCR 2.9.3