ticketevolution-ruby 0.6.6 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.minimum.versions.gemfile +1 -1
- data/README.markdown +2 -2
- data/Rakefile +2 -3
- data/lib/docs/objects.markdown +1 -1
- data/lib/faraday/response/verbose_logger.rb +34 -0
- data/lib/ticket_evolution/core/connection.rb +21 -23
- data/lib/ticket_evolution/core/endpoint/request_handler.rb +19 -9
- data/lib/ticket_evolution/core/model.rb +6 -4
- data/lib/ticket_evolution/modules/update.rb +18 -5
- data/lib/ticket_evolution/version.rb +1 -1
- data/lib/ticket_evolution.rb +3 -1
- data/spec/fixtures/fake.rb +1 -1
- data/spec/fixtures/net/core/connection.yml +43 -4
- data/spec/fixtures/net/endpoints/accounts.yml +44 -0
- data/spec/fixtures/net/endpoints/brokerages.yml +44 -0
- data/spec/fixtures/net/endpoints/clients/create.yml +287 -0
- data/spec/fixtures/net/endpoints/clients/update_fail.yml +958 -0
- data/spec/fixtures/net/endpoints/clients/update_success.yml +820 -0
- data/spec/fixtures/net/endpoints/clients.yml +585 -158
- data/spec/fixtures/net/endpoints/search.yml +49 -0
- data/spec/lib/ticket_evolution/accounts_spec.rb +1 -1
- data/spec/lib/ticket_evolution/client_spec.rb +37 -1
- data/spec/lib/ticket_evolution/clients_spec.rb +2 -2
- data/spec/lib/ticket_evolution/core/connection_spec.rb +23 -15
- data/spec/lib/ticket_evolution/search_spec.rb +1 -10
- data/spec/shared_examples/endpoints/class.rb +19 -26
- data/spec/shared_examples/endpoints/update.rb +51 -12
- data/spec/support/connection.rb +2 -0
- data/ticketevolution-ruby.gemspec +2 -2
- metadata +36 -26
@@ -0,0 +1,820 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :put
|
5
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2396
|
6
|
+
body: !!null
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/vnd.ticketevolution.api+json; version=8
|
10
|
+
x-signature:
|
11
|
+
- 7erxJ4+aZE4seVEaOyhPQaooa7uWoS2AwdNeCN8D0qQ=
|
12
|
+
x-token:
|
13
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
content-type:
|
20
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
21
|
+
transfer-encoding:
|
22
|
+
- chunked
|
23
|
+
connection:
|
24
|
+
- keep-alive
|
25
|
+
status:
|
26
|
+
- '200'
|
27
|
+
x-powered-by:
|
28
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
29
|
+
etag:
|
30
|
+
- ! '"b8c467818fffa0a8808b91b86f694905"'
|
31
|
+
x-ua-compatible:
|
32
|
+
- IE=Edge,chrome=1
|
33
|
+
x-runtime:
|
34
|
+
- '0.058415'
|
35
|
+
cache-control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
strict-transport-security:
|
38
|
+
- max-age=31536000
|
39
|
+
server:
|
40
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
41
|
+
body: ! '{"updated_at":"2012-02-22T16:52:02Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2396","id":"2396"}'
|
42
|
+
http_version: '1.1'
|
43
|
+
- !ruby/struct:VCR::HTTPInteraction
|
44
|
+
request: !ruby/struct:VCR::Request
|
45
|
+
method: :put
|
46
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2396
|
47
|
+
body: !!null
|
48
|
+
headers:
|
49
|
+
accept:
|
50
|
+
- application/vnd.ticketevolution.api+json; version=8
|
51
|
+
x-signature:
|
52
|
+
- 7erxJ4+aZE4seVEaOyhPQaooa7uWoS2AwdNeCN8D0qQ=
|
53
|
+
x-token:
|
54
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
55
|
+
response: !ruby/struct:VCR::Response
|
56
|
+
status: !ruby/struct:VCR::ResponseStatus
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
content-type:
|
61
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
62
|
+
transfer-encoding:
|
63
|
+
- chunked
|
64
|
+
connection:
|
65
|
+
- keep-alive
|
66
|
+
status:
|
67
|
+
- '200'
|
68
|
+
x-powered-by:
|
69
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
70
|
+
etag:
|
71
|
+
- ! '"b8c467818fffa0a8808b91b86f694905"'
|
72
|
+
x-ua-compatible:
|
73
|
+
- IE=Edge,chrome=1
|
74
|
+
x-runtime:
|
75
|
+
- '0.058415'
|
76
|
+
cache-control:
|
77
|
+
- max-age=0, private, must-revalidate
|
78
|
+
strict-transport-security:
|
79
|
+
- max-age=31536000
|
80
|
+
server:
|
81
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
82
|
+
body: ! '{"updated_at":"2012-02-22T16:52:02Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2396","id":"2396"}'
|
83
|
+
http_version: '1.1'
|
84
|
+
- !ruby/struct:VCR::HTTPInteraction
|
85
|
+
request: !ruby/struct:VCR::Request
|
86
|
+
method: :get
|
87
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2396?
|
88
|
+
body: !!null
|
89
|
+
headers:
|
90
|
+
accept:
|
91
|
+
- application/vnd.ticketevolution.api+json; version=8
|
92
|
+
x-signature:
|
93
|
+
- yL/FzLbX4GLucvyTmSNoi8AxHg5hUaFzmYrLYu6TQUM=
|
94
|
+
x-token:
|
95
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
96
|
+
response: !ruby/struct:VCR::Response
|
97
|
+
status: !ruby/struct:VCR::ResponseStatus
|
98
|
+
code: 200
|
99
|
+
message: OK
|
100
|
+
headers:
|
101
|
+
content-type:
|
102
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
103
|
+
transfer-encoding:
|
104
|
+
- chunked
|
105
|
+
connection:
|
106
|
+
- keep-alive
|
107
|
+
status:
|
108
|
+
- '200'
|
109
|
+
x-powered-by:
|
110
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
111
|
+
etag:
|
112
|
+
- ! '"b8c467818fffa0a8808b91b86f694905"'
|
113
|
+
x-ua-compatible:
|
114
|
+
- IE=Edge,chrome=1
|
115
|
+
x-runtime:
|
116
|
+
- '0.463169'
|
117
|
+
cache-control:
|
118
|
+
- max-age=0, private, must-revalidate
|
119
|
+
strict-transport-security:
|
120
|
+
- max-age=31536000
|
121
|
+
server:
|
122
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
123
|
+
body: ! '{"updated_at":"2012-02-22T16:52:02Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2396","id":"2396"}'
|
124
|
+
http_version: '1.1'
|
125
|
+
- !ruby/struct:VCR::HTTPInteraction
|
126
|
+
request: !ruby/struct:VCR::Request
|
127
|
+
method: :get
|
128
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2396?
|
129
|
+
body: !!null
|
130
|
+
headers:
|
131
|
+
accept:
|
132
|
+
- application/vnd.ticketevolution.api+json; version=8
|
133
|
+
x-signature:
|
134
|
+
- yL/FzLbX4GLucvyTmSNoi8AxHg5hUaFzmYrLYu6TQUM=
|
135
|
+
x-token:
|
136
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
137
|
+
response: !ruby/struct:VCR::Response
|
138
|
+
status: !ruby/struct:VCR::ResponseStatus
|
139
|
+
code: 200
|
140
|
+
message: OK
|
141
|
+
headers:
|
142
|
+
content-type:
|
143
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
144
|
+
transfer-encoding:
|
145
|
+
- chunked
|
146
|
+
connection:
|
147
|
+
- keep-alive
|
148
|
+
status:
|
149
|
+
- '200'
|
150
|
+
x-powered-by:
|
151
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
152
|
+
etag:
|
153
|
+
- ! '"b8c467818fffa0a8808b91b86f694905"'
|
154
|
+
x-ua-compatible:
|
155
|
+
- IE=Edge,chrome=1
|
156
|
+
x-runtime:
|
157
|
+
- '0.463169'
|
158
|
+
cache-control:
|
159
|
+
- max-age=0, private, must-revalidate
|
160
|
+
strict-transport-security:
|
161
|
+
- max-age=31536000
|
162
|
+
server:
|
163
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
164
|
+
body: ! '{"updated_at":"2012-02-22T16:52:02Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2396","id":"2396"}'
|
165
|
+
http_version: '1.1'
|
166
|
+
- !ruby/struct:VCR::HTTPInteraction
|
167
|
+
request: !ruby/struct:VCR::Request
|
168
|
+
method: :put
|
169
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2398
|
170
|
+
body: !!null
|
171
|
+
headers:
|
172
|
+
accept:
|
173
|
+
- application/vnd.ticketevolution.api+json; version=8
|
174
|
+
x-signature:
|
175
|
+
- fJprvXg0GrXZ7g971YUZcKEesLxx4DI/V1cvthaBbBo=
|
176
|
+
x-token:
|
177
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
178
|
+
response: !ruby/struct:VCR::Response
|
179
|
+
status: !ruby/struct:VCR::ResponseStatus
|
180
|
+
code: 200
|
181
|
+
message: OK
|
182
|
+
headers:
|
183
|
+
content-type:
|
184
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
185
|
+
transfer-encoding:
|
186
|
+
- chunked
|
187
|
+
connection:
|
188
|
+
- keep-alive
|
189
|
+
status:
|
190
|
+
- '200'
|
191
|
+
x-powered-by:
|
192
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
193
|
+
etag:
|
194
|
+
- ! '"2031976ae6a1ed68506e480836f5009e"'
|
195
|
+
x-ua-compatible:
|
196
|
+
- IE=Edge,chrome=1
|
197
|
+
x-runtime:
|
198
|
+
- '0.060569'
|
199
|
+
cache-control:
|
200
|
+
- max-age=0, private, must-revalidate
|
201
|
+
strict-transport-security:
|
202
|
+
- max-age=31536000
|
203
|
+
server:
|
204
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
205
|
+
body: ! '{"updated_at":"2012-02-22T16:53:24Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2398","id":"2398"}'
|
206
|
+
http_version: '1.1'
|
207
|
+
- !ruby/struct:VCR::HTTPInteraction
|
208
|
+
request: !ruby/struct:VCR::Request
|
209
|
+
method: :put
|
210
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2398
|
211
|
+
body: !!null
|
212
|
+
headers:
|
213
|
+
accept:
|
214
|
+
- application/vnd.ticketevolution.api+json; version=8
|
215
|
+
x-signature:
|
216
|
+
- fJprvXg0GrXZ7g971YUZcKEesLxx4DI/V1cvthaBbBo=
|
217
|
+
x-token:
|
218
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
219
|
+
response: !ruby/struct:VCR::Response
|
220
|
+
status: !ruby/struct:VCR::ResponseStatus
|
221
|
+
code: 200
|
222
|
+
message: OK
|
223
|
+
headers:
|
224
|
+
content-type:
|
225
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
226
|
+
transfer-encoding:
|
227
|
+
- chunked
|
228
|
+
connection:
|
229
|
+
- keep-alive
|
230
|
+
status:
|
231
|
+
- '200'
|
232
|
+
x-powered-by:
|
233
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
234
|
+
etag:
|
235
|
+
- ! '"2031976ae6a1ed68506e480836f5009e"'
|
236
|
+
x-ua-compatible:
|
237
|
+
- IE=Edge,chrome=1
|
238
|
+
x-runtime:
|
239
|
+
- '0.060569'
|
240
|
+
cache-control:
|
241
|
+
- max-age=0, private, must-revalidate
|
242
|
+
strict-transport-security:
|
243
|
+
- max-age=31536000
|
244
|
+
server:
|
245
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
246
|
+
body: ! '{"updated_at":"2012-02-22T16:53:24Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2398","id":"2398"}'
|
247
|
+
http_version: '1.1'
|
248
|
+
- !ruby/struct:VCR::HTTPInteraction
|
249
|
+
request: !ruby/struct:VCR::Request
|
250
|
+
method: :get
|
251
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2398?
|
252
|
+
body: !!null
|
253
|
+
headers:
|
254
|
+
accept:
|
255
|
+
- application/vnd.ticketevolution.api+json; version=8
|
256
|
+
x-signature:
|
257
|
+
- qWvjHcHGAkDlslyilzMY8K9fuAe0BoaQqj402ZH5b/M=
|
258
|
+
x-token:
|
259
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
260
|
+
response: !ruby/struct:VCR::Response
|
261
|
+
status: !ruby/struct:VCR::ResponseStatus
|
262
|
+
code: 200
|
263
|
+
message: OK
|
264
|
+
headers:
|
265
|
+
content-type:
|
266
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
267
|
+
transfer-encoding:
|
268
|
+
- chunked
|
269
|
+
connection:
|
270
|
+
- keep-alive
|
271
|
+
status:
|
272
|
+
- '200'
|
273
|
+
x-powered-by:
|
274
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
275
|
+
etag:
|
276
|
+
- ! '"2031976ae6a1ed68506e480836f5009e"'
|
277
|
+
x-ua-compatible:
|
278
|
+
- IE=Edge,chrome=1
|
279
|
+
x-runtime:
|
280
|
+
- '0.037717'
|
281
|
+
cache-control:
|
282
|
+
- max-age=0, private, must-revalidate
|
283
|
+
strict-transport-security:
|
284
|
+
- max-age=31536000
|
285
|
+
server:
|
286
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
287
|
+
body: ! '{"updated_at":"2012-02-22T16:53:24Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2398","id":"2398"}'
|
288
|
+
http_version: '1.1'
|
289
|
+
- !ruby/struct:VCR::HTTPInteraction
|
290
|
+
request: !ruby/struct:VCR::Request
|
291
|
+
method: :get
|
292
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2398?
|
293
|
+
body: !!null
|
294
|
+
headers:
|
295
|
+
accept:
|
296
|
+
- application/vnd.ticketevolution.api+json; version=8
|
297
|
+
x-signature:
|
298
|
+
- qWvjHcHGAkDlslyilzMY8K9fuAe0BoaQqj402ZH5b/M=
|
299
|
+
x-token:
|
300
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
301
|
+
response: !ruby/struct:VCR::Response
|
302
|
+
status: !ruby/struct:VCR::ResponseStatus
|
303
|
+
code: 200
|
304
|
+
message: OK
|
305
|
+
headers:
|
306
|
+
content-type:
|
307
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
308
|
+
transfer-encoding:
|
309
|
+
- chunked
|
310
|
+
connection:
|
311
|
+
- keep-alive
|
312
|
+
status:
|
313
|
+
- '200'
|
314
|
+
x-powered-by:
|
315
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
316
|
+
etag:
|
317
|
+
- ! '"2031976ae6a1ed68506e480836f5009e"'
|
318
|
+
x-ua-compatible:
|
319
|
+
- IE=Edge,chrome=1
|
320
|
+
x-runtime:
|
321
|
+
- '0.037717'
|
322
|
+
cache-control:
|
323
|
+
- max-age=0, private, must-revalidate
|
324
|
+
strict-transport-security:
|
325
|
+
- max-age=31536000
|
326
|
+
server:
|
327
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
328
|
+
body: ! '{"updated_at":"2012-02-22T16:53:24Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2398","id":"2398"}'
|
329
|
+
http_version: '1.1'
|
330
|
+
- !ruby/struct:VCR::HTTPInteraction
|
331
|
+
request: !ruby/struct:VCR::Request
|
332
|
+
method: :put
|
333
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2400
|
334
|
+
body: !!null
|
335
|
+
headers:
|
336
|
+
accept:
|
337
|
+
- application/vnd.ticketevolution.api+json; version=8
|
338
|
+
x-signature:
|
339
|
+
- 5QIB9+okMQv6cUevHySezdQhJDJS1REzvJOVe30Leuc=
|
340
|
+
x-token:
|
341
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
342
|
+
response: !ruby/struct:VCR::Response
|
343
|
+
status: !ruby/struct:VCR::ResponseStatus
|
344
|
+
code: 200
|
345
|
+
message: OK
|
346
|
+
headers:
|
347
|
+
content-type:
|
348
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
349
|
+
transfer-encoding:
|
350
|
+
- chunked
|
351
|
+
connection:
|
352
|
+
- keep-alive
|
353
|
+
status:
|
354
|
+
- '200'
|
355
|
+
x-powered-by:
|
356
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
357
|
+
etag:
|
358
|
+
- ! '"6f85f667c6ff691f6b085406eb4f7856"'
|
359
|
+
x-ua-compatible:
|
360
|
+
- IE=Edge,chrome=1
|
361
|
+
x-runtime:
|
362
|
+
- '0.071515'
|
363
|
+
cache-control:
|
364
|
+
- max-age=0, private, must-revalidate
|
365
|
+
strict-transport-security:
|
366
|
+
- max-age=31536000
|
367
|
+
server:
|
368
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
369
|
+
body: ! '{"updated_at":"2012-02-22T17:06:03Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2400","id":"2400"}'
|
370
|
+
http_version: '1.1'
|
371
|
+
- !ruby/struct:VCR::HTTPInteraction
|
372
|
+
request: !ruby/struct:VCR::Request
|
373
|
+
method: :put
|
374
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2400
|
375
|
+
body: !!null
|
376
|
+
headers:
|
377
|
+
accept:
|
378
|
+
- application/vnd.ticketevolution.api+json; version=8
|
379
|
+
x-signature:
|
380
|
+
- 5QIB9+okMQv6cUevHySezdQhJDJS1REzvJOVe30Leuc=
|
381
|
+
x-token:
|
382
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
383
|
+
response: !ruby/struct:VCR::Response
|
384
|
+
status: !ruby/struct:VCR::ResponseStatus
|
385
|
+
code: 200
|
386
|
+
message: OK
|
387
|
+
headers:
|
388
|
+
content-type:
|
389
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
390
|
+
transfer-encoding:
|
391
|
+
- chunked
|
392
|
+
connection:
|
393
|
+
- keep-alive
|
394
|
+
status:
|
395
|
+
- '200'
|
396
|
+
x-powered-by:
|
397
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
398
|
+
etag:
|
399
|
+
- ! '"6f85f667c6ff691f6b085406eb4f7856"'
|
400
|
+
x-ua-compatible:
|
401
|
+
- IE=Edge,chrome=1
|
402
|
+
x-runtime:
|
403
|
+
- '0.071515'
|
404
|
+
cache-control:
|
405
|
+
- max-age=0, private, must-revalidate
|
406
|
+
strict-transport-security:
|
407
|
+
- max-age=31536000
|
408
|
+
server:
|
409
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
410
|
+
body: ! '{"updated_at":"2012-02-22T17:06:03Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2400","id":"2400"}'
|
411
|
+
http_version: '1.1'
|
412
|
+
- !ruby/struct:VCR::HTTPInteraction
|
413
|
+
request: !ruby/struct:VCR::Request
|
414
|
+
method: :get
|
415
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2400?
|
416
|
+
body: !!null
|
417
|
+
headers:
|
418
|
+
accept:
|
419
|
+
- application/vnd.ticketevolution.api+json; version=8
|
420
|
+
x-signature:
|
421
|
+
- llbovrHByaQ52FQDz4dNfE3Qh0qpTEb5t3l6uTYhXAI=
|
422
|
+
x-token:
|
423
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
424
|
+
response: !ruby/struct:VCR::Response
|
425
|
+
status: !ruby/struct:VCR::ResponseStatus
|
426
|
+
code: 200
|
427
|
+
message: OK
|
428
|
+
headers:
|
429
|
+
content-type:
|
430
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
431
|
+
transfer-encoding:
|
432
|
+
- chunked
|
433
|
+
connection:
|
434
|
+
- keep-alive
|
435
|
+
status:
|
436
|
+
- '200'
|
437
|
+
x-powered-by:
|
438
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
439
|
+
etag:
|
440
|
+
- ! '"6f85f667c6ff691f6b085406eb4f7856"'
|
441
|
+
x-ua-compatible:
|
442
|
+
- IE=Edge,chrome=1
|
443
|
+
x-runtime:
|
444
|
+
- '0.042061'
|
445
|
+
cache-control:
|
446
|
+
- max-age=0, private, must-revalidate
|
447
|
+
strict-transport-security:
|
448
|
+
- max-age=31536000
|
449
|
+
server:
|
450
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
451
|
+
body: ! '{"updated_at":"2012-02-22T17:06:03Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2400","id":"2400"}'
|
452
|
+
http_version: '1.1'
|
453
|
+
- !ruby/struct:VCR::HTTPInteraction
|
454
|
+
request: !ruby/struct:VCR::Request
|
455
|
+
method: :get
|
456
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2400?
|
457
|
+
body: !!null
|
458
|
+
headers:
|
459
|
+
accept:
|
460
|
+
- application/vnd.ticketevolution.api+json; version=8
|
461
|
+
x-signature:
|
462
|
+
- llbovrHByaQ52FQDz4dNfE3Qh0qpTEb5t3l6uTYhXAI=
|
463
|
+
x-token:
|
464
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
465
|
+
response: !ruby/struct:VCR::Response
|
466
|
+
status: !ruby/struct:VCR::ResponseStatus
|
467
|
+
code: 200
|
468
|
+
message: OK
|
469
|
+
headers:
|
470
|
+
content-type:
|
471
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
472
|
+
transfer-encoding:
|
473
|
+
- chunked
|
474
|
+
connection:
|
475
|
+
- keep-alive
|
476
|
+
status:
|
477
|
+
- '200'
|
478
|
+
x-powered-by:
|
479
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
480
|
+
etag:
|
481
|
+
- ! '"6f85f667c6ff691f6b085406eb4f7856"'
|
482
|
+
x-ua-compatible:
|
483
|
+
- IE=Edge,chrome=1
|
484
|
+
x-runtime:
|
485
|
+
- '0.042061'
|
486
|
+
cache-control:
|
487
|
+
- max-age=0, private, must-revalidate
|
488
|
+
strict-transport-security:
|
489
|
+
- max-age=31536000
|
490
|
+
server:
|
491
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
492
|
+
body: ! '{"updated_at":"2012-02-22T17:06:03Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2400","id":"2400"}'
|
493
|
+
http_version: '1.1'
|
494
|
+
- !ruby/struct:VCR::HTTPInteraction
|
495
|
+
request: !ruby/struct:VCR::Request
|
496
|
+
method: :post
|
497
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients
|
498
|
+
body: ! '{"clients":[{"name":"foo"}]}'
|
499
|
+
headers:
|
500
|
+
accept:
|
501
|
+
- application/vnd.ticketevolution.api+json; version=8
|
502
|
+
x-signature:
|
503
|
+
- Fjw96P6d0OgfpnxvFdz3E6L4KwmWOG/GzHLYaqPBltE=
|
504
|
+
x-token:
|
505
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
506
|
+
response: !ruby/struct:VCR::Response
|
507
|
+
status: !ruby/struct:VCR::ResponseStatus
|
508
|
+
code: 201
|
509
|
+
message: Created
|
510
|
+
headers:
|
511
|
+
content-type:
|
512
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
513
|
+
transfer-encoding:
|
514
|
+
- chunked
|
515
|
+
connection:
|
516
|
+
- keep-alive
|
517
|
+
status:
|
518
|
+
- '201'
|
519
|
+
x-powered-by:
|
520
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
521
|
+
x-ua-compatible:
|
522
|
+
- IE=Edge,chrome=1
|
523
|
+
x-runtime:
|
524
|
+
- '0.075505'
|
525
|
+
cache-control:
|
526
|
+
- no-cache
|
527
|
+
strict-transport-security:
|
528
|
+
- max-age=31536000
|
529
|
+
server:
|
530
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
531
|
+
body: ! '{"clients":[{"updated_at":"2012-02-22T17:07:29Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"foo","url":"/clients/2404","id":"2404"}]}'
|
532
|
+
http_version: '1.1'
|
533
|
+
- !ruby/struct:VCR::HTTPInteraction
|
534
|
+
request: !ruby/struct:VCR::Request
|
535
|
+
method: :post
|
536
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients
|
537
|
+
body: ! '{"clients":[{"name":"foo"}]}'
|
538
|
+
headers:
|
539
|
+
accept:
|
540
|
+
- application/vnd.ticketevolution.api+json; version=8
|
541
|
+
x-signature:
|
542
|
+
- Fjw96P6d0OgfpnxvFdz3E6L4KwmWOG/GzHLYaqPBltE=
|
543
|
+
x-token:
|
544
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
545
|
+
response: !ruby/struct:VCR::Response
|
546
|
+
status: !ruby/struct:VCR::ResponseStatus
|
547
|
+
code: 201
|
548
|
+
message: Created
|
549
|
+
headers:
|
550
|
+
content-type:
|
551
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
552
|
+
transfer-encoding:
|
553
|
+
- chunked
|
554
|
+
connection:
|
555
|
+
- keep-alive
|
556
|
+
status:
|
557
|
+
- '201'
|
558
|
+
x-powered-by:
|
559
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
560
|
+
x-ua-compatible:
|
561
|
+
- IE=Edge,chrome=1
|
562
|
+
x-runtime:
|
563
|
+
- '0.075505'
|
564
|
+
cache-control:
|
565
|
+
- no-cache
|
566
|
+
strict-transport-security:
|
567
|
+
- max-age=31536000
|
568
|
+
server:
|
569
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
570
|
+
body: ! '{"clients":[{"updated_at":"2012-02-22T17:07:29Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"foo","url":"/clients/2404","id":"2404"}]}'
|
571
|
+
http_version: '1.1'
|
572
|
+
- !ruby/struct:VCR::HTTPInteraction
|
573
|
+
request: !ruby/struct:VCR::Request
|
574
|
+
method: :put
|
575
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2404
|
576
|
+
body: !!null
|
577
|
+
headers:
|
578
|
+
accept:
|
579
|
+
- application/vnd.ticketevolution.api+json; version=8
|
580
|
+
x-signature:
|
581
|
+
- yoH7VBNazgwMD5qDylTSA6nucOZCbbxNcHercU2NTGU=
|
582
|
+
x-token:
|
583
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
584
|
+
response: !ruby/struct:VCR::Response
|
585
|
+
status: !ruby/struct:VCR::ResponseStatus
|
586
|
+
code: 200
|
587
|
+
message: OK
|
588
|
+
headers:
|
589
|
+
content-type:
|
590
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
591
|
+
transfer-encoding:
|
592
|
+
- chunked
|
593
|
+
connection:
|
594
|
+
- keep-alive
|
595
|
+
status:
|
596
|
+
- '200'
|
597
|
+
x-powered-by:
|
598
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
599
|
+
etag:
|
600
|
+
- ! '"bb1916645af7d9995682c149492980cc"'
|
601
|
+
x-ua-compatible:
|
602
|
+
- IE=Edge,chrome=1
|
603
|
+
x-runtime:
|
604
|
+
- '0.060027'
|
605
|
+
cache-control:
|
606
|
+
- max-age=0, private, must-revalidate
|
607
|
+
strict-transport-security:
|
608
|
+
- max-age=31536000
|
609
|
+
server:
|
610
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
611
|
+
body: ! '{"updated_at":"2012-02-22T17:07:29Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2404","id":"2404"}'
|
612
|
+
http_version: '1.1'
|
613
|
+
- !ruby/struct:VCR::HTTPInteraction
|
614
|
+
request: !ruby/struct:VCR::Request
|
615
|
+
method: :put
|
616
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2404
|
617
|
+
body: !!null
|
618
|
+
headers:
|
619
|
+
accept:
|
620
|
+
- application/vnd.ticketevolution.api+json; version=8
|
621
|
+
x-signature:
|
622
|
+
- yoH7VBNazgwMD5qDylTSA6nucOZCbbxNcHercU2NTGU=
|
623
|
+
x-token:
|
624
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
625
|
+
response: !ruby/struct:VCR::Response
|
626
|
+
status: !ruby/struct:VCR::ResponseStatus
|
627
|
+
code: 200
|
628
|
+
message: OK
|
629
|
+
headers:
|
630
|
+
content-type:
|
631
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
632
|
+
transfer-encoding:
|
633
|
+
- chunked
|
634
|
+
connection:
|
635
|
+
- keep-alive
|
636
|
+
status:
|
637
|
+
- '200'
|
638
|
+
x-powered-by:
|
639
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
640
|
+
etag:
|
641
|
+
- ! '"bb1916645af7d9995682c149492980cc"'
|
642
|
+
x-ua-compatible:
|
643
|
+
- IE=Edge,chrome=1
|
644
|
+
x-runtime:
|
645
|
+
- '0.060027'
|
646
|
+
cache-control:
|
647
|
+
- max-age=0, private, must-revalidate
|
648
|
+
strict-transport-security:
|
649
|
+
- max-age=31536000
|
650
|
+
server:
|
651
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
652
|
+
body: ! '{"updated_at":"2012-02-22T17:07:29Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2404","id":"2404"}'
|
653
|
+
http_version: '1.1'
|
654
|
+
- !ruby/struct:VCR::HTTPInteraction
|
655
|
+
request: !ruby/struct:VCR::Request
|
656
|
+
method: :get
|
657
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2404?
|
658
|
+
body: !!null
|
659
|
+
headers:
|
660
|
+
accept:
|
661
|
+
- application/vnd.ticketevolution.api+json; version=8
|
662
|
+
x-signature:
|
663
|
+
- AqJkMduM7JmPcwo+VtPGFmguowzLv60/6AL9ARtrSkk=
|
664
|
+
x-token:
|
665
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
666
|
+
response: !ruby/struct:VCR::Response
|
667
|
+
status: !ruby/struct:VCR::ResponseStatus
|
668
|
+
code: 200
|
669
|
+
message: OK
|
670
|
+
headers:
|
671
|
+
content-type:
|
672
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
673
|
+
transfer-encoding:
|
674
|
+
- chunked
|
675
|
+
connection:
|
676
|
+
- keep-alive
|
677
|
+
status:
|
678
|
+
- '200'
|
679
|
+
x-powered-by:
|
680
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
681
|
+
etag:
|
682
|
+
- ! '"bb1916645af7d9995682c149492980cc"'
|
683
|
+
x-ua-compatible:
|
684
|
+
- IE=Edge,chrome=1
|
685
|
+
x-runtime:
|
686
|
+
- '0.037995'
|
687
|
+
cache-control:
|
688
|
+
- max-age=0, private, must-revalidate
|
689
|
+
strict-transport-security:
|
690
|
+
- max-age=31536000
|
691
|
+
server:
|
692
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
693
|
+
body: ! '{"updated_at":"2012-02-22T17:07:29Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2404","id":"2404"}'
|
694
|
+
http_version: '1.1'
|
695
|
+
- !ruby/struct:VCR::HTTPInteraction
|
696
|
+
request: !ruby/struct:VCR::Request
|
697
|
+
method: :get
|
698
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2404?
|
699
|
+
body: !!null
|
700
|
+
headers:
|
701
|
+
accept:
|
702
|
+
- application/vnd.ticketevolution.api+json; version=8
|
703
|
+
x-signature:
|
704
|
+
- AqJkMduM7JmPcwo+VtPGFmguowzLv60/6AL9ARtrSkk=
|
705
|
+
x-token:
|
706
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
707
|
+
response: !ruby/struct:VCR::Response
|
708
|
+
status: !ruby/struct:VCR::ResponseStatus
|
709
|
+
code: 200
|
710
|
+
message: OK
|
711
|
+
headers:
|
712
|
+
content-type:
|
713
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
714
|
+
transfer-encoding:
|
715
|
+
- chunked
|
716
|
+
connection:
|
717
|
+
- keep-alive
|
718
|
+
status:
|
719
|
+
- '200'
|
720
|
+
x-powered-by:
|
721
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
722
|
+
etag:
|
723
|
+
- ! '"bb1916645af7d9995682c149492980cc"'
|
724
|
+
x-ua-compatible:
|
725
|
+
- IE=Edge,chrome=1
|
726
|
+
x-runtime:
|
727
|
+
- '0.037995'
|
728
|
+
cache-control:
|
729
|
+
- max-age=0, private, must-revalidate
|
730
|
+
strict-transport-security:
|
731
|
+
- max-age=31536000
|
732
|
+
server:
|
733
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
734
|
+
body: ! '{"updated_at":"2012-02-22T17:07:29Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2404","id":"2404"}'
|
735
|
+
http_version: '1.1'
|
736
|
+
- !ruby/struct:VCR::HTTPInteraction
|
737
|
+
request: !ruby/struct:VCR::Request
|
738
|
+
method: :put
|
739
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2404
|
740
|
+
body: ! '{"updated_at":"2012-02-22T17:07:29Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2404","status_code":201,"server_message":"Generally
|
741
|
+
returned by successful POST requests. "}'
|
742
|
+
headers:
|
743
|
+
x-signature:
|
744
|
+
- igagZ7PD+E0vTGyT3RH4l54mKjOmtf2GrzU4mqyyCIM=
|
745
|
+
x-token:
|
746
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
747
|
+
accept:
|
748
|
+
- application/vnd.ticketevolution.api+json; version=8
|
749
|
+
response: !ruby/struct:VCR::Response
|
750
|
+
status: !ruby/struct:VCR::ResponseStatus
|
751
|
+
code: 200
|
752
|
+
message: OK
|
753
|
+
headers:
|
754
|
+
content-type:
|
755
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
756
|
+
transfer-encoding:
|
757
|
+
- chunked
|
758
|
+
connection:
|
759
|
+
- keep-alive
|
760
|
+
status:
|
761
|
+
- '200'
|
762
|
+
x-powered-by:
|
763
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
764
|
+
etag:
|
765
|
+
- ! '"bb1916645af7d9995682c149492980cc"'
|
766
|
+
x-ua-compatible:
|
767
|
+
- IE=Edge,chrome=1
|
768
|
+
x-runtime:
|
769
|
+
- '0.179335'
|
770
|
+
cache-control:
|
771
|
+
- max-age=0, private, must-revalidate
|
772
|
+
strict-transport-security:
|
773
|
+
- max-age=31536000
|
774
|
+
server:
|
775
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
776
|
+
body: ! '{"updated_at":"2012-02-22T17:07:29Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2404","id":"2404"}'
|
777
|
+
http_version: '1.1'
|
778
|
+
- !ruby/struct:VCR::HTTPInteraction
|
779
|
+
request: !ruby/struct:VCR::Request
|
780
|
+
method: :get
|
781
|
+
uri: https://api.sandbox.ticketevolution.com:443/clients/2404
|
782
|
+
body: !!null
|
783
|
+
headers:
|
784
|
+
x-signature:
|
785
|
+
- AqJkMduM7JmPcwo+VtPGFmguowzLv60/6AL9ARtrSkk=
|
786
|
+
x-token:
|
787
|
+
- b2b5a7a33b1a78896ed1b53d81c5c9cc
|
788
|
+
accept:
|
789
|
+
- application/vnd.ticketevolution.api+json; version=8
|
790
|
+
accept-encoding:
|
791
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
792
|
+
response: !ruby/struct:VCR::Response
|
793
|
+
status: !ruby/struct:VCR::ResponseStatus
|
794
|
+
code: 200
|
795
|
+
message: OK
|
796
|
+
headers:
|
797
|
+
content-type:
|
798
|
+
- application/vnd.ticketevolution.api+json; version=8; charset=utf-8
|
799
|
+
transfer-encoding:
|
800
|
+
- chunked
|
801
|
+
connection:
|
802
|
+
- keep-alive
|
803
|
+
status:
|
804
|
+
- '200'
|
805
|
+
x-powered-by:
|
806
|
+
- Phusion Passenger (mod_rails/mod_rack) 3.0.11
|
807
|
+
etag:
|
808
|
+
- ! '"bb1916645af7d9995682c149492980cc"'
|
809
|
+
x-ua-compatible:
|
810
|
+
- IE=Edge,chrome=1
|
811
|
+
x-runtime:
|
812
|
+
- '0.140010'
|
813
|
+
cache-control:
|
814
|
+
- max-age=0, private, must-revalidate
|
815
|
+
strict-transport-security:
|
816
|
+
- max-age=31536000
|
817
|
+
server:
|
818
|
+
- nginx/1.0.11 + Phusion Passenger 3.0.11 (mod_rails/mod_rack)
|
819
|
+
body: ! '{"updated_at":"2012-02-22T17:07:29Z","addresses":[],"email_addresses":[],"phone_numbers":[],"name":"bar","url":"/clients/2404","id":"2404"}'
|
820
|
+
http_version: '1.1'
|