big-door 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/.bundle/config +2 -0
  2. data/.document +5 -0
  3. data/.gitignore +22 -0
  4. data/Gemfile +12 -0
  5. data/LICENSE +20 -0
  6. data/README.rdoc +17 -0
  7. data/Rakefile +59 -0
  8. data/VERSION +1 -0
  9. data/features/big-door.feature +26 -0
  10. data/features/step_definitions/big-door_steps.rb +83 -0
  11. data/features/support/env.rb +5 -0
  12. data/lib/big-door.rb +127 -0
  13. data/lib/big-door/base.rb +45 -0
  14. data/lib/big-door/currency.rb +25 -0
  15. data/lib/big-door/named_transaction.rb +25 -0
  16. data/lib/big-door/named_transaction_group.rb +27 -0
  17. data/lib/big-door/request.rb +7 -0
  18. data/lib/big-door/response_codes.rb +266 -0
  19. data/lib/big-door/user.rb +49 -0
  20. data/spec/.rspec +1 -0
  21. data/spec/big-door_spec.rb +105 -0
  22. data/spec/spec_helper.rb +19 -0
  23. data/spec/support/vcr.rb +7 -0
  24. data/vcr_cassettes/NamedTransaction/NamedTransaction.yml +213 -0
  25. data/vcr_cassettes/NamedTransaction/specific.yml +6043 -0
  26. data/vcr_cassettes/award/award_summary.yml +34 -0
  27. data/vcr_cassettes/currency/currency.yml +52 -0
  28. data/vcr_cassettes/currency/currency_type.yml +31 -0
  29. data/vcr_cassettes/currency/specific.yml +2980 -0
  30. data/vcr_cassettes/good/good_summary.yml +34 -0
  31. data/vcr_cassettes/level/level_summary.yml +34 -0
  32. data/vcr_cassettes/named_transaction/named_transactions.yml +107 -0
  33. data/vcr_cassettes/named_transaction_group/all.yml +145 -0
  34. data/vcr_cassettes/named_transaction_group/specific.yml +3171 -0
  35. data/vcr_cassettes/user/add_points.yml +36 -0
  36. data/vcr_cassettes/user/all.yml +473 -0
  37. data/vcr_cassettes/user/create.yml +393 -0
  38. data/vcr_cassettes/user/currency_balance.yml +738 -0
  39. data/vcr_cassettes/user/new.yml +5660 -0
  40. data/vcr_cassettes/user/new_currency_balance.yml +470 -0
  41. data/vcr_cassettes/user/specific.yml +213 -0
  42. metadata +175 -0
@@ -0,0 +1,393 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user?sig=37dc47a907b457e880a4090d3fc30108f23280636de046762d35aafb8a088993&time=1282851344.29&format=json
6
+ body: token=277101b7917eb866e0748cae4eb9a7de&time=1282851344.29&end_user_login=fakeemail%40trada.com&guid=374b2010924ba1eeb4a9869f79ed1382
7
+ headers:
8
+ connection:
9
+ - close
10
+ content-type:
11
+ - application/x-www-form-urlencoded
12
+ content-length:
13
+ - "132"
14
+ host:
15
+ - api.bigdoor.com
16
+ response: !ruby/struct:VCR::Response
17
+ status: !ruby/struct:VCR::ResponseStatus
18
+ code: 201
19
+ message: CREATED
20
+ headers:
21
+ content-type:
22
+ - application/json; charset=utf-8
23
+ connection:
24
+ - Close
25
+ date:
26
+ - Thu, 26 Aug 2010 19:35:45 GMT
27
+ server:
28
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
29
+ content-length:
30
+ - "447"
31
+ vary:
32
+ - Authorization,Cookie
33
+ body: |-
34
+ [
35
+ {
36
+ "read_only": 0,
37
+ "modified_timestamp": 1282851345,
38
+ "resource_name": "end_user",
39
+ "award_summaries": [],
40
+ "level_summaries": [],
41
+ "sent_good_summaries": [],
42
+ "currency_balances": [],
43
+ "created_timestamp": 1282851345,
44
+ "end_user_login": "fakeemail@trada.com",
45
+ "guid": "1ef9e7b0b14911df91a9c5fca3bf701b",
46
+ "received_good_summaries": []
47
+ },
48
+ {}
49
+ ]
50
+ http_version: "1.1"
51
+ - !ruby/struct:VCR::HTTPInteraction
52
+ request: !ruby/struct:VCR::Request
53
+ method: :post
54
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user?sig=ba0ee6f2e279f3f875c8a88e63ee8cd3d2fc9112d12dc3f3647676b9ec1b5433&time=1282851362.87&format=json
55
+ body: token=b565afc10e0672f153ad54615cb5bec4&time=1282851362.87&end_user_login=fakeemailer%40trada.com&guid=9ff18bad3f3c7e469b8dc510e9513bb6
56
+ headers:
57
+ content-type:
58
+ - application/x-www-form-urlencoded
59
+ connection:
60
+ - close
61
+ content-length:
62
+ - "134"
63
+ host:
64
+ - api.bigdoor.com
65
+ response: !ruby/struct:VCR::Response
66
+ status: !ruby/struct:VCR::ResponseStatus
67
+ code: 201
68
+ message: CREATED
69
+ headers:
70
+ connection:
71
+ - Close
72
+ content-type:
73
+ - application/json; charset=utf-8
74
+ server:
75
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
76
+ date:
77
+ - Thu, 26 Aug 2010 19:36:03 GMT
78
+ content-length:
79
+ - "449"
80
+ vary:
81
+ - Authorization,Cookie
82
+ body: |-
83
+ [
84
+ {
85
+ "read_only": 0,
86
+ "modified_timestamp": 1282851363,
87
+ "resource_name": "end_user",
88
+ "award_summaries": [],
89
+ "level_summaries": [],
90
+ "sent_good_summaries": [],
91
+ "currency_balances": [],
92
+ "created_timestamp": 1282851363,
93
+ "end_user_login": "fakeemailer@trada.com",
94
+ "guid": "29fc6bf5b14911dfa15a55a9222eea83",
95
+ "received_good_summaries": []
96
+ },
97
+ {}
98
+ ]
99
+ http_version: "1.1"
100
+ - !ruby/struct:VCR::HTTPInteraction
101
+ request: !ruby/struct:VCR::Request
102
+ method: :post
103
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user?sig=f05d855792fc7780da1e8053fde62dd32042c7493b5fe85bed023b36f90ca8c1&time=1282851398.76&format=json
104
+ body: token=cb80671ee5552e92f9ae658ee6ee13b5&time=1282851398.76&end_user_login=fakeemailer%40trada.com&guid=7ce999809bcf3080105ca517d265fc7a
105
+ headers:
106
+ connection:
107
+ - close
108
+ content-type:
109
+ - application/x-www-form-urlencoded
110
+ content-length:
111
+ - "134"
112
+ host:
113
+ - api.bigdoor.com
114
+ response: !ruby/struct:VCR::Response
115
+ status: !ruby/struct:VCR::ResponseStatus
116
+ code: 201
117
+ message: CREATED
118
+ headers:
119
+ content-type:
120
+ - application/json; charset=utf-8
121
+ connection:
122
+ - Close
123
+ date:
124
+ - Thu, 26 Aug 2010 19:36:39 GMT
125
+ server:
126
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
127
+ content-length:
128
+ - "449"
129
+ vary:
130
+ - Authorization,Cookie
131
+ body: |-
132
+ [
133
+ {
134
+ "read_only": 0,
135
+ "modified_timestamp": 1282851363,
136
+ "resource_name": "end_user",
137
+ "award_summaries": [],
138
+ "level_summaries": [],
139
+ "sent_good_summaries": [],
140
+ "currency_balances": [],
141
+ "created_timestamp": 1282851363,
142
+ "end_user_login": "fakeemailer@trada.com",
143
+ "guid": "29fc6bf5b14911dfa15a55a9222eea83",
144
+ "received_good_summaries": []
145
+ },
146
+ {}
147
+ ]
148
+ http_version: "1.1"
149
+ - !ruby/struct:VCR::HTTPInteraction
150
+ request: !ruby/struct:VCR::Request
151
+ method: :post
152
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user?sig=2571e6d1054ca3edb78a09cfb41360c6a6a49ee5af48bd7785d5bc1a8d593586&time=1282851465.63&format=json
153
+ body: token=758ee315c8b6fe08e7b8684a83879650&time=1282851465.63&end_user_login=fakeemailer%40trada.com&guid=078b4178204dcdbbe1f7f0491d9390f2
154
+ headers:
155
+ content-type:
156
+ - application/x-www-form-urlencoded
157
+ connection:
158
+ - close
159
+ content-length:
160
+ - "134"
161
+ host:
162
+ - api.bigdoor.com
163
+ response: !ruby/struct:VCR::Response
164
+ status: !ruby/struct:VCR::ResponseStatus
165
+ code: 201
166
+ message: CREATED
167
+ headers:
168
+ connection:
169
+ - Close
170
+ content-type:
171
+ - application/json; charset=utf-8
172
+ server:
173
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
174
+ date:
175
+ - Thu, 26 Aug 2010 19:37:46 GMT
176
+ content-length:
177
+ - "449"
178
+ vary:
179
+ - Authorization,Cookie
180
+ body: |-
181
+ [
182
+ {
183
+ "read_only": 0,
184
+ "modified_timestamp": 1282851363,
185
+ "resource_name": "end_user",
186
+ "award_summaries": [],
187
+ "level_summaries": [],
188
+ "sent_good_summaries": [],
189
+ "currency_balances": [],
190
+ "created_timestamp": 1282851363,
191
+ "end_user_login": "fakeemailer@trada.com",
192
+ "guid": "29fc6bf5b14911dfa15a55a9222eea83",
193
+ "received_good_summaries": []
194
+ },
195
+ {}
196
+ ]
197
+ http_version: "1.1"
198
+ - !ruby/struct:VCR::HTTPInteraction
199
+ request: !ruby/struct:VCR::Request
200
+ method: :post
201
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user?sig=414fecc1806f69ff9b2bc81f49a53793af9fb178e8695c7db420aee22b53a0e7&time=1282851496.41&format=json
202
+ body: token=c217f4dbb5f911525b4b821ec33ad3cf&time=1282851496.41&end_user_login=fakeemailer%40trada.com&guid=7312183f6a535d11acd65fb3d59679b9
203
+ headers:
204
+ connection:
205
+ - close
206
+ content-type:
207
+ - application/x-www-form-urlencoded
208
+ content-length:
209
+ - "134"
210
+ host:
211
+ - api.bigdoor.com
212
+ response: !ruby/struct:VCR::Response
213
+ status: !ruby/struct:VCR::ResponseStatus
214
+ code: 201
215
+ message: CREATED
216
+ headers:
217
+ content-type:
218
+ - application/json; charset=utf-8
219
+ connection:
220
+ - Close
221
+ date:
222
+ - Thu, 26 Aug 2010 19:38:17 GMT
223
+ server:
224
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny9 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
225
+ content-length:
226
+ - "449"
227
+ vary:
228
+ - Authorization,Cookie
229
+ body: |-
230
+ [
231
+ {
232
+ "read_only": 0,
233
+ "modified_timestamp": 1282851363,
234
+ "resource_name": "end_user",
235
+ "award_summaries": [],
236
+ "level_summaries": [],
237
+ "sent_good_summaries": [],
238
+ "currency_balances": [],
239
+ "created_timestamp": 1282851363,
240
+ "end_user_login": "fakeemailer@trada.com",
241
+ "guid": "29fc6bf5b14911dfa15a55a9222eea83",
242
+ "received_good_summaries": []
243
+ },
244
+ {}
245
+ ]
246
+ http_version: "1.1"
247
+ - !ruby/struct:VCR::HTTPInteraction
248
+ request: !ruby/struct:VCR::Request
249
+ method: :post
250
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user?sig=067d7928e6fbad49ee22c4984ccc3302ffeebccfedf45864f3a9a2844d15a175&time=1282851668.30&format=json
251
+ body: token=6a23a6aca6a0c13bf8ca3a46adcebb91&time=1282851668.30&end_user_login=fakeemailer%40trada.com&guid=cb38f36f03ffc67f8f30a40beb2b098e
252
+ headers:
253
+ content-type:
254
+ - application/x-www-form-urlencoded
255
+ connection:
256
+ - close
257
+ content-length:
258
+ - "134"
259
+ host:
260
+ - api.bigdoor.com
261
+ response: !ruby/struct:VCR::Response
262
+ status: !ruby/struct:VCR::ResponseStatus
263
+ code: 201
264
+ message: CREATED
265
+ headers:
266
+ connection:
267
+ - Close
268
+ content-type:
269
+ - application/json; charset=utf-8
270
+ server:
271
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
272
+ date:
273
+ - Thu, 26 Aug 2010 19:41:09 GMT
274
+ content-length:
275
+ - "449"
276
+ vary:
277
+ - Authorization,Cookie
278
+ body: |-
279
+ [
280
+ {
281
+ "read_only": 0,
282
+ "modified_timestamp": 1282851363,
283
+ "resource_name": "end_user",
284
+ "award_summaries": [],
285
+ "level_summaries": [],
286
+ "sent_good_summaries": [],
287
+ "currency_balances": [],
288
+ "created_timestamp": 1282851363,
289
+ "end_user_login": "fakeemailer@trada.com",
290
+ "guid": "29fc6bf5b14911dfa15a55a9222eea83",
291
+ "received_good_summaries": []
292
+ },
293
+ {}
294
+ ]
295
+ http_version: "1.1"
296
+ - !ruby/struct:VCR::HTTPInteraction
297
+ request: !ruby/struct:VCR::Request
298
+ method: :post
299
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user?sig=dfcc57bcdbde7ec5685172cbbf593442658b2cc732cb987a5dc9a34996b3f87d&time=1282851685.25&format=json
300
+ body: token=99165856abf21ead61ab0d5e92c99d30&time=1282851685.25&end_user_login=fakeemailer%40trada.com&guid=1826a820c116b5dcc1e99bc46ba6ae28
301
+ headers:
302
+ connection:
303
+ - close
304
+ content-type:
305
+ - application/x-www-form-urlencoded
306
+ content-length:
307
+ - "134"
308
+ host:
309
+ - api.bigdoor.com
310
+ response: !ruby/struct:VCR::Response
311
+ status: !ruby/struct:VCR::ResponseStatus
312
+ code: 201
313
+ message: CREATED
314
+ headers:
315
+ content-type:
316
+ - application/json; charset=utf-8
317
+ connection:
318
+ - Close
319
+ date:
320
+ - Thu, 26 Aug 2010 19:41:26 GMT
321
+ server:
322
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
323
+ content-length:
324
+ - "449"
325
+ vary:
326
+ - Authorization,Cookie
327
+ body: |-
328
+ [
329
+ {
330
+ "read_only": 0,
331
+ "modified_timestamp": 1282851363,
332
+ "resource_name": "end_user",
333
+ "award_summaries": [],
334
+ "level_summaries": [],
335
+ "sent_good_summaries": [],
336
+ "currency_balances": [],
337
+ "created_timestamp": 1282851363,
338
+ "end_user_login": "fakeemailer@trada.com",
339
+ "guid": "29fc6bf5b14911dfa15a55a9222eea83",
340
+ "received_good_summaries": []
341
+ },
342
+ {}
343
+ ]
344
+ http_version: "1.1"
345
+ - !ruby/struct:VCR::HTTPInteraction
346
+ request: !ruby/struct:VCR::Request
347
+ method: :post
348
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user?sig=0f9f6d25063200bd15c4df18b26bfae4ba202b04dee42f0ed02ff5bd75858a98&time=1282851765.22&format=json
349
+ body: token=3819c6d27ae531b5b86384e57985b7f8&time=1282851765.22&end_user_login=fakeemailer%40trada.com&guid=248652e2e66f060344288248a4eef335
350
+ headers:
351
+ content-type:
352
+ - application/x-www-form-urlencoded
353
+ connection:
354
+ - close
355
+ content-length:
356
+ - "134"
357
+ host:
358
+ - api.bigdoor.com
359
+ response: !ruby/struct:VCR::Response
360
+ status: !ruby/struct:VCR::ResponseStatus
361
+ code: 201
362
+ message: CREATED
363
+ headers:
364
+ connection:
365
+ - Close
366
+ content-type:
367
+ - application/json; charset=utf-8
368
+ server:
369
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
370
+ date:
371
+ - Thu, 26 Aug 2010 19:42:46 GMT
372
+ content-length:
373
+ - "449"
374
+ vary:
375
+ - Authorization,Cookie
376
+ body: |-
377
+ [
378
+ {
379
+ "read_only": 0,
380
+ "modified_timestamp": 1282851363,
381
+ "resource_name": "end_user",
382
+ "award_summaries": [],
383
+ "level_summaries": [],
384
+ "sent_good_summaries": [],
385
+ "currency_balances": [],
386
+ "created_timestamp": 1282851363,
387
+ "end_user_login": "fakeemailer@trada.com",
388
+ "guid": "29fc6bf5b14911dfa15a55a9222eea83",
389
+ "received_good_summaries": []
390
+ },
391
+ {}
392
+ ]
393
+ http_version: "1.1"
@@ -0,0 +1,738 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/tester/currency_balance?time=1282766698.95&format=json&sig=4701d94833875738583452cdaf432b1f40c1f44ae065c13ca2f0239f8d37e7a2
6
+ body:
7
+ headers:
8
+ connection:
9
+ - close
10
+ host:
11
+ - api.bigdoor.com
12
+ response: !ruby/struct:VCR::Response
13
+ status: !ruby/struct:VCR::ResponseStatus
14
+ code: 200
15
+ message: OK
16
+ headers:
17
+ connection:
18
+ - Close
19
+ content-type:
20
+ - application/json; charset=utf-8
21
+ server:
22
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
23
+ date:
24
+ - Wed, 25 Aug 2010 20:04:59 GMT
25
+ content-length:
26
+ - "1343"
27
+ vary:
28
+ - Authorization,Cookie
29
+ body: |-
30
+ [
31
+ [
32
+ {
33
+ "end_user_description": null,
34
+ "read_only": 0,
35
+ "modified_timestamp": 1282766434,
36
+ "pub_title": "temp_points",
37
+ "transaction_group_id": "592c9ff06d839b914b32966cdb69e395",
38
+ "adjustment_amount": "30.00",
39
+ "id": 10215423,
40
+ "currency": {
41
+ "end_user_description": null,
42
+ "read_only": 0,
43
+ "modified_timestamp": 1281974693,
44
+ "pub_title": "temp_points",
45
+ "currency_type_title": "Skill Points",
46
+ "currency_type_id": 9,
47
+ "exchange_rate": "1.00",
48
+ "resource_name": "currency",
49
+ "urls": [],
50
+ "created_timestamp": 1281974693,
51
+ "pub_description": null,
52
+ "end_user_title": "Temp Points",
53
+ "relative_weight": 1,
54
+ "id": 579,
55
+ "currency_type_description": ""
56
+ },
57
+ "prev_balance": "240.00",
58
+ "resource_name": "end_user_currency_balance",
59
+ "created_timestamp": 1282752987,
60
+ "pub_description": null,
61
+ "end_user_title": "Temp Points",
62
+ "end_user_login": "tester",
63
+ "curr_balance": "270.00"
64
+ }
65
+ ],
66
+ {}
67
+ ]
68
+ http_version: "1.1"
69
+ - !ruby/struct:VCR::HTTPInteraction
70
+ request: !ruby/struct:VCR::Request
71
+ method: :get
72
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/tester/currency_balance?time=1282766720.68&format=json&sig=b0e639f5fe5a031cc35b1b91b5c35614a8d335c1b18de81084b9e628ddde13cc
73
+ body:
74
+ headers:
75
+ connection:
76
+ - close
77
+ host:
78
+ - api.bigdoor.com
79
+ response: !ruby/struct:VCR::Response
80
+ status: !ruby/struct:VCR::ResponseStatus
81
+ code: 200
82
+ message: OK
83
+ headers:
84
+ content-type:
85
+ - application/json; charset=utf-8
86
+ connection:
87
+ - Close
88
+ date:
89
+ - Wed, 25 Aug 2010 20:05:20 GMT
90
+ server:
91
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
92
+ content-length:
93
+ - "1343"
94
+ vary:
95
+ - Authorization,Cookie
96
+ body: |-
97
+ [
98
+ [
99
+ {
100
+ "end_user_description": null,
101
+ "read_only": 0,
102
+ "modified_timestamp": 1282766434,
103
+ "pub_title": "temp_points",
104
+ "transaction_group_id": "592c9ff06d839b914b32966cdb69e395",
105
+ "adjustment_amount": "30.00",
106
+ "id": 10215423,
107
+ "currency": {
108
+ "end_user_description": null,
109
+ "read_only": 0,
110
+ "modified_timestamp": 1281974693,
111
+ "pub_title": "temp_points",
112
+ "currency_type_title": "Skill Points",
113
+ "currency_type_id": 9,
114
+ "exchange_rate": "1.00",
115
+ "resource_name": "currency",
116
+ "urls": [],
117
+ "created_timestamp": 1281974693,
118
+ "pub_description": null,
119
+ "end_user_title": "Temp Points",
120
+ "relative_weight": 1,
121
+ "id": 579,
122
+ "currency_type_description": ""
123
+ },
124
+ "prev_balance": "240.00",
125
+ "resource_name": "end_user_currency_balance",
126
+ "created_timestamp": 1282752987,
127
+ "pub_description": null,
128
+ "end_user_title": "Temp Points",
129
+ "end_user_login": "tester",
130
+ "curr_balance": "270.00"
131
+ }
132
+ ],
133
+ {}
134
+ ]
135
+ http_version: "1.1"
136
+ - !ruby/struct:VCR::HTTPInteraction
137
+ request: !ruby/struct:VCR::Request
138
+ method: :get
139
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/tester/currency_balance?time=1282766827.99&format=json&sig=347f1fc635e79c7b681638e01aaa95d5e61d333d12e4cee9e50dd9fcfc5bbc9f
140
+ body:
141
+ headers:
142
+ connection:
143
+ - close
144
+ host:
145
+ - api.bigdoor.com
146
+ response: !ruby/struct:VCR::Response
147
+ status: !ruby/struct:VCR::ResponseStatus
148
+ code: 200
149
+ message: OK
150
+ headers:
151
+ connection:
152
+ - Close
153
+ content-type:
154
+ - application/json; charset=utf-8
155
+ server:
156
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
157
+ date:
158
+ - Wed, 25 Aug 2010 20:07:08 GMT
159
+ content-length:
160
+ - "1343"
161
+ vary:
162
+ - Authorization,Cookie
163
+ body: |-
164
+ [
165
+ [
166
+ {
167
+ "end_user_description": null,
168
+ "read_only": 0,
169
+ "modified_timestamp": 1282766434,
170
+ "pub_title": "temp_points",
171
+ "transaction_group_id": "592c9ff06d839b914b32966cdb69e395",
172
+ "adjustment_amount": "30.00",
173
+ "id": 10215423,
174
+ "currency": {
175
+ "end_user_description": null,
176
+ "read_only": 0,
177
+ "modified_timestamp": 1281974693,
178
+ "pub_title": "temp_points",
179
+ "currency_type_title": "Skill Points",
180
+ "currency_type_id": 9,
181
+ "exchange_rate": "1.00",
182
+ "resource_name": "currency",
183
+ "urls": [],
184
+ "created_timestamp": 1281974693,
185
+ "pub_description": null,
186
+ "end_user_title": "Temp Points",
187
+ "relative_weight": 1,
188
+ "id": 579,
189
+ "currency_type_description": ""
190
+ },
191
+ "prev_balance": "240.00",
192
+ "resource_name": "end_user_currency_balance",
193
+ "created_timestamp": 1282752987,
194
+ "pub_description": null,
195
+ "end_user_title": "Temp Points",
196
+ "end_user_login": "tester",
197
+ "curr_balance": "270.00"
198
+ }
199
+ ],
200
+ {}
201
+ ]
202
+ http_version: "1.1"
203
+ - !ruby/struct:VCR::HTTPInteraction
204
+ request: !ruby/struct:VCR::Request
205
+ method: :get
206
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/tester/currency_balance?time=1282767016.05&format=json&sig=d6f3f9ef0d98600c2e642a117d4e011d2f6605c23633467bbe3dbb8ca536db25
207
+ body:
208
+ headers:
209
+ connection:
210
+ - close
211
+ host:
212
+ - api.bigdoor.com
213
+ response: !ruby/struct:VCR::Response
214
+ status: !ruby/struct:VCR::ResponseStatus
215
+ code: 200
216
+ message: OK
217
+ headers:
218
+ content-type:
219
+ - application/json; charset=utf-8
220
+ connection:
221
+ - Close
222
+ date:
223
+ - Wed, 25 Aug 2010 20:10:16 GMT
224
+ server:
225
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
226
+ content-length:
227
+ - "1343"
228
+ vary:
229
+ - Authorization,Cookie
230
+ body: |-
231
+ [
232
+ [
233
+ {
234
+ "end_user_description": null,
235
+ "read_only": 0,
236
+ "modified_timestamp": 1282766434,
237
+ "pub_title": "temp_points",
238
+ "transaction_group_id": "592c9ff06d839b914b32966cdb69e395",
239
+ "adjustment_amount": "30.00",
240
+ "id": 10215423,
241
+ "currency": {
242
+ "end_user_description": null,
243
+ "read_only": 0,
244
+ "modified_timestamp": 1281974693,
245
+ "pub_title": "temp_points",
246
+ "currency_type_title": "Skill Points",
247
+ "currency_type_id": 9,
248
+ "exchange_rate": "1.00",
249
+ "resource_name": "currency",
250
+ "urls": [],
251
+ "created_timestamp": 1281974693,
252
+ "pub_description": null,
253
+ "end_user_title": "Temp Points",
254
+ "relative_weight": 1,
255
+ "id": 579,
256
+ "currency_type_description": ""
257
+ },
258
+ "prev_balance": "240.00",
259
+ "resource_name": "end_user_currency_balance",
260
+ "created_timestamp": 1282752987,
261
+ "pub_description": null,
262
+ "end_user_title": "Temp Points",
263
+ "end_user_login": "tester",
264
+ "curr_balance": "270.00"
265
+ }
266
+ ],
267
+ {}
268
+ ]
269
+ http_version: "1.1"
270
+ - !ruby/struct:VCR::HTTPInteraction
271
+ request: !ruby/struct:VCR::Request
272
+ method: :get
273
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/tester/currency_balance?time=1282767045.27&format=json&sig=98e42c99a9bb483596f796536eaec4c2506e5c202d74a41bac2eb61846a86d1e
274
+ body:
275
+ headers:
276
+ connection:
277
+ - close
278
+ host:
279
+ - api.bigdoor.com
280
+ response: !ruby/struct:VCR::Response
281
+ status: !ruby/struct:VCR::ResponseStatus
282
+ code: 200
283
+ message: OK
284
+ headers:
285
+ connection:
286
+ - Close
287
+ content-type:
288
+ - application/json; charset=utf-8
289
+ server:
290
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
291
+ date:
292
+ - Wed, 25 Aug 2010 20:10:45 GMT
293
+ content-length:
294
+ - "1343"
295
+ vary:
296
+ - Authorization,Cookie
297
+ body: |-
298
+ [
299
+ [
300
+ {
301
+ "end_user_description": null,
302
+ "read_only": 0,
303
+ "modified_timestamp": 1282767016,
304
+ "pub_title": "temp_points",
305
+ "transaction_group_id": "72138643720a02db31a7bced97821a39",
306
+ "adjustment_amount": "30.00",
307
+ "id": 10215423,
308
+ "currency": {
309
+ "end_user_description": null,
310
+ "read_only": 0,
311
+ "modified_timestamp": 1281974693,
312
+ "pub_title": "temp_points",
313
+ "currency_type_title": "Skill Points",
314
+ "currency_type_id": 9,
315
+ "exchange_rate": "1.00",
316
+ "resource_name": "currency",
317
+ "urls": [],
318
+ "created_timestamp": 1281974693,
319
+ "pub_description": null,
320
+ "end_user_title": "Temp Points",
321
+ "relative_weight": 1,
322
+ "id": 579,
323
+ "currency_type_description": ""
324
+ },
325
+ "prev_balance": "270.00",
326
+ "resource_name": "end_user_currency_balance",
327
+ "created_timestamp": 1282752987,
328
+ "pub_description": null,
329
+ "end_user_title": "Temp Points",
330
+ "end_user_login": "tester",
331
+ "curr_balance": "300.00"
332
+ }
333
+ ],
334
+ {}
335
+ ]
336
+ http_version: "1.1"
337
+ - !ruby/struct:VCR::HTTPInteraction
338
+ request: !ruby/struct:VCR::Request
339
+ method: :get
340
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/tester/currency_balance?time=1282767071.60&format=json&sig=aba693ef8bac37d2a6837bebd113cffb877e353af738673ccb70762217e46543
341
+ body:
342
+ headers:
343
+ connection:
344
+ - close
345
+ host:
346
+ - api.bigdoor.com
347
+ response: !ruby/struct:VCR::Response
348
+ status: !ruby/struct:VCR::ResponseStatus
349
+ code: 200
350
+ message: OK
351
+ headers:
352
+ content-type:
353
+ - application/json; charset=utf-8
354
+ connection:
355
+ - Close
356
+ date:
357
+ - Wed, 25 Aug 2010 20:11:11 GMT
358
+ server:
359
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
360
+ content-length:
361
+ - "1343"
362
+ vary:
363
+ - Authorization,Cookie
364
+ body: |-
365
+ [
366
+ [
367
+ {
368
+ "end_user_description": null,
369
+ "read_only": 0,
370
+ "modified_timestamp": 1282767045,
371
+ "pub_title": "temp_points",
372
+ "transaction_group_id": "702e26b7dfa254fd4311f656c8751225",
373
+ "adjustment_amount": "30.00",
374
+ "id": 10215423,
375
+ "currency": {
376
+ "end_user_description": null,
377
+ "read_only": 0,
378
+ "modified_timestamp": 1281974693,
379
+ "pub_title": "temp_points",
380
+ "currency_type_title": "Skill Points",
381
+ "currency_type_id": 9,
382
+ "exchange_rate": "1.00",
383
+ "resource_name": "currency",
384
+ "urls": [],
385
+ "created_timestamp": 1281974693,
386
+ "pub_description": null,
387
+ "end_user_title": "Temp Points",
388
+ "relative_weight": 1,
389
+ "id": 579,
390
+ "currency_type_description": ""
391
+ },
392
+ "prev_balance": "300.00",
393
+ "resource_name": "end_user_currency_balance",
394
+ "created_timestamp": 1282752987,
395
+ "pub_description": null,
396
+ "end_user_title": "Temp Points",
397
+ "end_user_login": "tester",
398
+ "curr_balance": "330.00"
399
+ }
400
+ ],
401
+ {}
402
+ ]
403
+ http_version: "1.1"
404
+ - !ruby/struct:VCR::HTTPInteraction
405
+ request: !ruby/struct:VCR::Request
406
+ method: :get
407
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/tester/currency_balance?time=1282767102.92&format=json&sig=e5042e9440b3ba0f02b6edf6cf342d6f33f69bc30ff3a40134c5ec72ade6a7a2
408
+ body:
409
+ headers:
410
+ connection:
411
+ - close
412
+ host:
413
+ - api.bigdoor.com
414
+ response: !ruby/struct:VCR::Response
415
+ status: !ruby/struct:VCR::ResponseStatus
416
+ code: 200
417
+ message: OK
418
+ headers:
419
+ connection:
420
+ - Close
421
+ content-type:
422
+ - application/json; charset=utf-8
423
+ server:
424
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
425
+ date:
426
+ - Wed, 25 Aug 2010 20:11:43 GMT
427
+ content-length:
428
+ - "1343"
429
+ vary:
430
+ - Authorization,Cookie
431
+ body: |-
432
+ [
433
+ [
434
+ {
435
+ "end_user_description": null,
436
+ "read_only": 0,
437
+ "modified_timestamp": 1282767072,
438
+ "pub_title": "temp_points",
439
+ "transaction_group_id": "11d76bb5aa2e6f957dcbbefeea1113ac",
440
+ "adjustment_amount": "30.00",
441
+ "id": 10215423,
442
+ "currency": {
443
+ "end_user_description": null,
444
+ "read_only": 0,
445
+ "modified_timestamp": 1281974693,
446
+ "pub_title": "temp_points",
447
+ "currency_type_title": "Skill Points",
448
+ "currency_type_id": 9,
449
+ "exchange_rate": "1.00",
450
+ "resource_name": "currency",
451
+ "urls": [],
452
+ "created_timestamp": 1281974693,
453
+ "pub_description": null,
454
+ "end_user_title": "Temp Points",
455
+ "relative_weight": 1,
456
+ "id": 579,
457
+ "currency_type_description": ""
458
+ },
459
+ "prev_balance": "330.00",
460
+ "resource_name": "end_user_currency_balance",
461
+ "created_timestamp": 1282752987,
462
+ "pub_description": null,
463
+ "end_user_title": "Temp Points",
464
+ "end_user_login": "tester",
465
+ "curr_balance": "360.00"
466
+ }
467
+ ],
468
+ {}
469
+ ]
470
+ http_version: "1.1"
471
+ - !ruby/struct:VCR::HTTPInteraction
472
+ request: !ruby/struct:VCR::Request
473
+ method: :get
474
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/tester/currency_balance?time=1282767138.05&format=json&sig=26ec81a8ffa10107f67e263a06a9efd416611d4f7a3d43d0bc7e5e8c21ff6951
475
+ body:
476
+ headers:
477
+ connection:
478
+ - close
479
+ host:
480
+ - api.bigdoor.com
481
+ response: !ruby/struct:VCR::Response
482
+ status: !ruby/struct:VCR::ResponseStatus
483
+ code: 200
484
+ message: OK
485
+ headers:
486
+ content-type:
487
+ - application/json; charset=utf-8
488
+ connection:
489
+ - Close
490
+ date:
491
+ - Wed, 25 Aug 2010 20:12:18 GMT
492
+ server:
493
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
494
+ content-length:
495
+ - "1343"
496
+ vary:
497
+ - Authorization,Cookie
498
+ body: |-
499
+ [
500
+ [
501
+ {
502
+ "end_user_description": null,
503
+ "read_only": 0,
504
+ "modified_timestamp": 1282767107,
505
+ "pub_title": "temp_points",
506
+ "transaction_group_id": "dcaa7ff6bdfee3a0bfb2704e9aa8953a",
507
+ "adjustment_amount": "30.00",
508
+ "id": 10215423,
509
+ "currency": {
510
+ "end_user_description": null,
511
+ "read_only": 0,
512
+ "modified_timestamp": 1281974693,
513
+ "pub_title": "temp_points",
514
+ "currency_type_title": "Skill Points",
515
+ "currency_type_id": 9,
516
+ "exchange_rate": "1.00",
517
+ "resource_name": "currency",
518
+ "urls": [],
519
+ "created_timestamp": 1281974693,
520
+ "pub_description": null,
521
+ "end_user_title": "Temp Points",
522
+ "relative_weight": 1,
523
+ "id": 579,
524
+ "currency_type_description": ""
525
+ },
526
+ "prev_balance": "360.00",
527
+ "resource_name": "end_user_currency_balance",
528
+ "created_timestamp": 1282752987,
529
+ "pub_description": null,
530
+ "end_user_title": "Temp Points",
531
+ "end_user_login": "tester",
532
+ "curr_balance": "390.00"
533
+ }
534
+ ],
535
+ {}
536
+ ]
537
+ http_version: "1.1"
538
+ - !ruby/struct:VCR::HTTPInteraction
539
+ request: !ruby/struct:VCR::Request
540
+ method: :get
541
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/tester/currency_balance?time=1282767204.98&format=json&sig=cecd1039ed9c2669d31172fb24ef9be0008016566eff6fa92fea0bd9334be253
542
+ body:
543
+ headers:
544
+ connection:
545
+ - close
546
+ host:
547
+ - api.bigdoor.com
548
+ response: !ruby/struct:VCR::Response
549
+ status: !ruby/struct:VCR::ResponseStatus
550
+ code: 200
551
+ message: OK
552
+ headers:
553
+ connection:
554
+ - Close
555
+ content-type:
556
+ - application/json; charset=utf-8
557
+ server:
558
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
559
+ date:
560
+ - Wed, 25 Aug 2010 20:13:25 GMT
561
+ content-length:
562
+ - "1343"
563
+ vary:
564
+ - Authorization,Cookie
565
+ body: |-
566
+ [
567
+ [
568
+ {
569
+ "end_user_description": null,
570
+ "read_only": 0,
571
+ "modified_timestamp": 1282767186,
572
+ "pub_title": "temp_points",
573
+ "transaction_group_id": "aac24faf35bb5a01a34daeb7e34f44c9",
574
+ "adjustment_amount": "30.00",
575
+ "id": 10215423,
576
+ "currency": {
577
+ "end_user_description": null,
578
+ "read_only": 0,
579
+ "modified_timestamp": 1281974693,
580
+ "pub_title": "temp_points",
581
+ "currency_type_title": "Skill Points",
582
+ "currency_type_id": 9,
583
+ "exchange_rate": "1.00",
584
+ "resource_name": "currency",
585
+ "urls": [],
586
+ "created_timestamp": 1281974693,
587
+ "pub_description": null,
588
+ "end_user_title": "Temp Points",
589
+ "relative_weight": 1,
590
+ "id": 579,
591
+ "currency_type_description": ""
592
+ },
593
+ "prev_balance": "390.00",
594
+ "resource_name": "end_user_currency_balance",
595
+ "created_timestamp": 1282752987,
596
+ "pub_description": null,
597
+ "end_user_title": "Temp Points",
598
+ "end_user_login": "tester",
599
+ "curr_balance": "420.00"
600
+ }
601
+ ],
602
+ {}
603
+ ]
604
+ http_version: "1.1"
605
+ - !ruby/struct:VCR::HTTPInteraction
606
+ request: !ruby/struct:VCR::Request
607
+ method: :get
608
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/tester/currency_balance?time=1282767221.70&format=json&sig=59851c64eb93449ebc85485c972b580dfc236712eee502332654c86cc3527d6e
609
+ body:
610
+ headers:
611
+ connection:
612
+ - close
613
+ host:
614
+ - api.bigdoor.com
615
+ response: !ruby/struct:VCR::Response
616
+ status: !ruby/struct:VCR::ResponseStatus
617
+ code: 200
618
+ message: OK
619
+ headers:
620
+ content-type:
621
+ - application/json; charset=utf-8
622
+ connection:
623
+ - Close
624
+ date:
625
+ - Wed, 25 Aug 2010 20:13:41 GMT
626
+ server:
627
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
628
+ content-length:
629
+ - "1343"
630
+ vary:
631
+ - Authorization,Cookie
632
+ body: |-
633
+ [
634
+ [
635
+ {
636
+ "end_user_description": null,
637
+ "read_only": 0,
638
+ "modified_timestamp": 1282767205,
639
+ "pub_title": "temp_points",
640
+ "transaction_group_id": "a64891b11d76f0456eb69b5ad9c1d49c",
641
+ "adjustment_amount": "30.00",
642
+ "id": 10215423,
643
+ "currency": {
644
+ "end_user_description": null,
645
+ "read_only": 0,
646
+ "modified_timestamp": 1281974693,
647
+ "pub_title": "temp_points",
648
+ "currency_type_title": "Skill Points",
649
+ "currency_type_id": 9,
650
+ "exchange_rate": "1.00",
651
+ "resource_name": "currency",
652
+ "urls": [],
653
+ "created_timestamp": 1281974693,
654
+ "pub_description": null,
655
+ "end_user_title": "Temp Points",
656
+ "relative_weight": 1,
657
+ "id": 579,
658
+ "currency_type_description": ""
659
+ },
660
+ "prev_balance": "420.00",
661
+ "resource_name": "end_user_currency_balance",
662
+ "created_timestamp": 1282752987,
663
+ "pub_description": null,
664
+ "end_user_title": "Temp Points",
665
+ "end_user_login": "tester",
666
+ "curr_balance": "450.00"
667
+ }
668
+ ],
669
+ {}
670
+ ]
671
+ http_version: "1.1"
672
+ - !ruby/struct:VCR::HTTPInteraction
673
+ request: !ruby/struct:VCR::Request
674
+ method: :get
675
+ uri: http://api.bigdoor.com:80/api/publisher/0d38d9cd41b0440bbf22c0720be58b27/end_user/tester/currency_balance?time=1282839854.21&format=json&sig=fcc6664bb9ffd1a23060c35608e34821fa5dbc75d952b08a0c4d40c375d92593
676
+ body:
677
+ headers:
678
+ connection:
679
+ - close
680
+ host:
681
+ - api.bigdoor.com
682
+ response: !ruby/struct:VCR::Response
683
+ status: !ruby/struct:VCR::ResponseStatus
684
+ code: 200
685
+ message: OK
686
+ headers:
687
+ connection:
688
+ - Close
689
+ content-type:
690
+ - application/json; charset=utf-8
691
+ server:
692
+ - Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch mod_wsgi/2.5 Python/2.5.2
693
+ date:
694
+ - Thu, 26 Aug 2010 16:24:14 GMT
695
+ content-length:
696
+ - "1343"
697
+ vary:
698
+ - Authorization,Cookie
699
+ body: |-
700
+ [
701
+ [
702
+ {
703
+ "end_user_description": null,
704
+ "read_only": 0,
705
+ "modified_timestamp": 1282767222,
706
+ "pub_title": "temp_points",
707
+ "transaction_group_id": "d64087569efdde6f93cc897d699e9f8d",
708
+ "adjustment_amount": "30.00",
709
+ "id": 10215423,
710
+ "currency": {
711
+ "end_user_description": null,
712
+ "read_only": 0,
713
+ "modified_timestamp": 1281974693,
714
+ "pub_title": "temp_points",
715
+ "currency_type_title": "Skill Points",
716
+ "currency_type_id": 9,
717
+ "exchange_rate": "1.00",
718
+ "resource_name": "currency",
719
+ "urls": [],
720
+ "created_timestamp": 1281974693,
721
+ "pub_description": null,
722
+ "end_user_title": "Temp Points",
723
+ "relative_weight": 1,
724
+ "id": 579,
725
+ "currency_type_description": ""
726
+ },
727
+ "prev_balance": "450.00",
728
+ "resource_name": "end_user_currency_balance",
729
+ "created_timestamp": 1282752987,
730
+ "pub_description": null,
731
+ "end_user_title": "Temp Points",
732
+ "end_user_login": "tester",
733
+ "curr_balance": "480.00"
734
+ }
735
+ ],
736
+ {}
737
+ ]
738
+ http_version: "1.1"