access 2.0.7 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/access.rb +1 -0
- data/lib/access/geolocation.rb +11 -0
- data/lib/access/location.rb +2 -0
- data/lib/access/version.rb +1 -1
- data/test/access/location_test.rb +2 -0
- data/test/access/offer_test.rb +1 -0
- data/test/fixtures/autocomplete_search.yml +30 -149
- data/test/fixtures/autocomplete_search_categories.yml +15 -120
- data/test/fixtures/autocomplete_search_locations.yml +9 -110
- data/test/fixtures/autocomplete_search_offers.yml +14 -119
- data/test/fixtures/autocomplete_search_stores.yml +16 -123
- data/test/fixtures/category_find.yml +9 -155
- data/test/fixtures/category_search.yml +18 -3588
- data/test/fixtures/category_search_fail_member_key.yml +9 -45
- data/test/fixtures/filter_find.yml +14 -77
- data/test/fixtures/filter_search.yml +16 -128
- data/test/fixtures/location_find.yml +414 -891
- data/test/fixtures/location_search.yml +69 -327
- data/test/fixtures/location_search_fail_member_key.yml +9 -310
- data/test/fixtures/national_stores.yml +1717 -3854
- data/test/fixtures/oauth_application_find.yml +9 -85
- data/test/fixtures/oauth_application_search.yml +12 -48
- data/test/fixtures/oauth_application_token_find.yml +9 -159
- data/test/fixtures/oauth_application_token_search.yml +9 -5
- data/test/fixtures/offer_find.yml +12 -555
- data/test/fixtures/offer_search.yml +12 -189
- data/test/fixtures/offer_search_fail_member_key.yml +9 -45
- data/test/fixtures/redeem_offer_no_redeem_type.yml +9 -359
- data/test/fixtures/store_find.yml +9 -501
- data/test/fixtures/store_search.yml +9 -135
- data/test/fixtures/store_search_fail_member_key.yml +9 -45
- data/test/fixtures/subcategory_find.yml +9 -145
- data/test/fixtures/token_find.yml +27 -356
- data/test/fixtures/token_search.yml +35 -224
- data/test/fixtures/verify_filter.yml +9 -5
- data/test/fixtures/verify_token.yml +13 -9
- metadata +2 -3
- data/test/fixtures/oauth_application_search_fail_member_key.yml +0 -268
@@ -1,186 +1,5 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://offer-demo.adcrws.com/v1/offers
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: query=pizza&member_key=guest&per_page=1
|
9
|
-
headers:
|
10
|
-
Access-Token:
|
11
|
-
- token_without_limit
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 400
|
19
|
-
message: Bad Request
|
20
|
-
headers:
|
21
|
-
Content-Type:
|
22
|
-
- application/json
|
23
|
-
Date:
|
24
|
-
- Thu, 06 Aug 2015 17:30:04 GMT
|
25
|
-
Server:
|
26
|
-
- nginx/1.6.2
|
27
|
-
Strict-Transport-Security:
|
28
|
-
- max-age=31536000
|
29
|
-
X-Request-Id:
|
30
|
-
- fc1167cd-80e9-41cf-b2a5-ef38d66f11b8
|
31
|
-
X-Runtime:
|
32
|
-
- '0.000195'
|
33
|
-
Content-Length:
|
34
|
-
- '150'
|
35
|
-
Connection:
|
36
|
-
- keep-alive
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"status":400,"message":"There was a problem in the JSON you submitted:
|
40
|
-
795: unexpected token at ''query=pizza\u0026member_key=guest\u0026per_page=1''"}'
|
41
|
-
http_version:
|
42
|
-
recorded_at: Thu, 06 Aug 2015 17:30:05 GMT
|
43
|
-
- request:
|
44
|
-
method: get
|
45
|
-
uri: https://offer-demo.adcrws.com/v1/offers?member_key=guest&per_page=1&query=pizza
|
46
|
-
body:
|
47
|
-
encoding: US-ASCII
|
48
|
-
string: ''
|
49
|
-
headers:
|
50
|
-
Access-Token:
|
51
|
-
- token_without_limit
|
52
|
-
Content-Type:
|
53
|
-
- application/json
|
54
|
-
Accept:
|
55
|
-
- application/json
|
56
|
-
response:
|
57
|
-
status:
|
58
|
-
code: 200
|
59
|
-
message: OK
|
60
|
-
headers:
|
61
|
-
Access-Control-Allow-Headers:
|
62
|
-
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
63
|
-
Access-Control-Allow-Methods:
|
64
|
-
- POST, GET, PUT, DELETE, OPTIONS
|
65
|
-
Access-Control-Max-Age:
|
66
|
-
- '1728000'
|
67
|
-
Access-Control-Request-Method:
|
68
|
-
- GET
|
69
|
-
Cache-Control:
|
70
|
-
- max-age=0, private, must-revalidate
|
71
|
-
Content-Type:
|
72
|
-
- application/json
|
73
|
-
Date:
|
74
|
-
- Thu, 06 Aug 2015 18:27:35 GMT
|
75
|
-
Etag:
|
76
|
-
- '"77c4048ab058d8a003603472f8309597"'
|
77
|
-
Server:
|
78
|
-
- nginx/1.6.2
|
79
|
-
Strict-Transport-Security:
|
80
|
-
- max-age=31536000
|
81
|
-
X-Content-Type-Options:
|
82
|
-
- nosniff
|
83
|
-
X-Frame-Options:
|
84
|
-
- SAMEORIGIN
|
85
|
-
X-Request-Id:
|
86
|
-
- c03675f8-7b27-4594-b75f-422169c4510e
|
87
|
-
X-Runtime:
|
88
|
-
- '0.070066'
|
89
|
-
X-Xss-Protection:
|
90
|
-
- 1; mode=block
|
91
|
-
Content-Length:
|
92
|
-
- '3770'
|
93
|
-
Connection:
|
94
|
-
- keep-alive
|
95
|
-
body:
|
96
|
-
encoding: ASCII-8BIT
|
97
|
-
string: !binary |-
|
98
|
-
ewogICJpbmZvIjogewogICAgInRvdGFsX3Jlc3VsdHMiOiAxOTI2LAogICAg
|
99
|
-
ImN1cnJlbnRfcGFnZSI6IDEsCiAgICAidG90YWxfcGFnZXMiOiAxOTI2LAog
|
100
|
-
ICAgInJlc3VsdHNfcGVyX3BhZ2UiOiAxCiAgfSwKICAib2ZmZXJzIjogWwog
|
101
|
-
ICAgewogICAgICAic2VhcmNoX3JlbGV2YW5jZSI6IDAuNzQ4MjgwMywKICAg
|
102
|
-
ICAgIm9mZmVyX2tleSI6IDczNjUyODUsCiAgICAgICJvZmZlcl9ncm91cF9r
|
103
|
-
ZXkiOiAxMzk2OTcsCiAgICA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AgICAgIndlYl9hZGRyZXNzIjogImh0dHA6Ly93d3cuZmlnYXJvcy5j
|
151
|
-
b20iLAogICAgICAgICAgImRlc2NyaXB0aW9uIjogbnVsbCwKICAgICAgICAg
|
152
|
-
ICJsb2NhdGlvbl9rZXkiOiAyNDQ4MjAsCiAgICAgICAgICAicG9zdGFsX2Nv
|
153
|
-
ZGUiOiAiOTg2MzIiLAogICAgICAgICAgImNvdW50cnkiOiAiVVMiLAogICAg
|
154
|
-
ICAgICAgInN0cmVldF9hZGRyZXNzIjogIjMyMDggT2NlYW4gQmVhY2ggSHd5
|
155
|
-
IiwKICAgICAgICAgICJleHRlbmRlZF9zdHJlZXRfYWRkcmVzcyI6IG51bGws
|
156
|
-
CiAgICAgICAgICAiY2l0eV9sb2NhbGl0eSI6ICJMb25ndmlldyIsCiAgICAg
|
157
|
-
ICAgICAic3RhdGVfcmVnaW9uIjogIldBIiwKICAgICAgICAgICJnZW9sb2Nh
|
158
|
-
dGlvbl9hcnJheSI6IFsKICAgICAgICAgICAgLTEyMi45NzEwNSwKICAgICAg
|
159
|
-
ICAgICAgNDYuMTQ4MzEKICAgICAgICAgIF0sCiAgICAgICAgICAiZ2VvbG9j
|
160
|
-
YXRpb24iOiB7CiAgICAgICAgICAgICJsYXQiOiA0Ni4xNDgzMSwKICAgICAg
|
161
|
-
ICAgICAgImxvbiI6IC0xMjIuOTcxMDUKICAgICAgICAgIH0sCiAgICAgICAg
|
162
|
-
ICAicGhvbmVfbnVtYmVyIjogIjM2MC0zNTMtMzMzMyIKICAgICAgICB9CiAg
|
163
|
-
ICAgIH0sCiAgICAgICJsb2NhdGlvbl9rZXl3b3JkcyI6IFsKCiAgICAgIF0s
|
164
|
-
CiAgICAgICJsaW5rcyI6IHsKICAgICAgICAic2hvd19vZmZlciI6ICJodHRw
|
165
|
-
czovL29mZmVyLWRlbW8uYWRjcndzLmNvbS92MS9vZmZlcnMvNzM2NTI4NSIs
|
166
|
-
CiAgICAgICAgInNob3dfc3RvcmUiOiAiaHR0cHM6Ly9vZmZlci1kZW1vLmFk
|
167
|
-
Y3J3cy5jb20vdjEvc3RvcmVzLzE4OTM4NDk4IiwKICAgICAgICAic2hvd19s
|
168
|
-
b2NhdGlvbiI6ICJodHRwczovL29mZmVyLWRlbW8uYWRjcndzLmNvbS92MS9s
|
169
|
-
b2NhdGlvbnMvMjQ0ODIwIiwKICAgICAgICAiZmluZF9vZmZlcnNfYXRfdGhp
|
170
|
-
c19zdG9yZSI6ICJodHRwczovL29mZmVyLWRlbW8uYWRjcndzLmNvbS92MS9v
|
171
|
-
ZmZlcnM/c3RvcmVfa2V5PTE4OTM4NDk4IiwKICAgICAgICAiZmluZF9vZmZl
|
172
|
-
cnNfYXRfdGhpc19sb2NhdGlvbiI6ICJodHRwczovL29mZmVyLWRlbW8uYWRj
|
173
|
-
cndzLmNvbS92MS9vZmZlcnM/bG9jYXRpb25fa2V5PTI0NDgyMCIsCiAgICAg
|
174
|
-
ICAgImZpbmRfbG9jYXRpb25zX3dpdGhfdGhpc19vZmZlciI6ICJodHRwczov
|
175
|
-
L29mZmVyLWRlbW8uYWRjcndzLmNvbS92MS9sb2NhdGlvbnM/b2ZmZXJfZ3Jv
|
176
|
-
dXA9MTM5Njk3IiwKICAgICAgICAiZmluZF9sb2NhdGlvbnNfZm9yX3RoaXNf
|
177
|
-
c3RvcmUiOiAiaHR0cHM6Ly9vZmZlci1kZW1vLmFkY3J3cy5jb20vdjEvbG9j
|
178
|
-
YXRpb25zP3N0b3JlX2tleT0xODkzODQ5OCIKICAgICAgfQogICAgfQogIF0s
|
179
|
-
CiAgImxpbmtzIjogewogICAgIm5leHRfcGFnZSI6ICJodHRwczovL29mZmVy
|
180
|
-
LWRlbW8uYWRjcndzLmNvbS92MS9vZmZlcnM/bWVtYmVyX2tleT1ndWVzdCZw
|
181
|
-
YWdlPTImcGVyX3BhZ2U9MSZxdWVyeT1waXp6YSIKICB9Cn0=
|
182
|
-
http_version:
|
183
|
-
recorded_at: Thu, 06 Aug 2015 18:27:35 GMT
|
184
3
|
- request:
|
185
4
|
method: get
|
186
5
|
uri: https://offer-demo.adcrws.com/v1/offers?member_key=API_RUBY_GEM_TEST&per_page=1&query=pizza
|
@@ -189,7 +8,7 @@ http_interactions:
|
|
189
8
|
string: ''
|
190
9
|
headers:
|
191
10
|
Access-Token:
|
192
|
-
-
|
11
|
+
- token_without_filters
|
193
12
|
Content-Type:
|
194
13
|
- application/json
|
195
14
|
Accept:
|
@@ -212,19 +31,23 @@ http_interactions:
|
|
212
31
|
Content-Type:
|
213
32
|
- application/json
|
214
33
|
Date:
|
215
|
-
-
|
34
|
+
- Wed, 16 Sep 2015 19:54:11 GMT
|
216
35
|
Etag:
|
217
|
-
- '"
|
36
|
+
- '"ce03486f30b61bf0bc398fe3b1784f21"'
|
218
37
|
Server:
|
219
38
|
- nginx/1.6.2
|
220
39
|
X-Content-Type-Options:
|
221
40
|
- nosniff
|
222
41
|
X-Frame-Options:
|
223
42
|
- SAMEORIGIN
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '1000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '955'
|
224
47
|
X-Request-Id:
|
225
|
-
-
|
48
|
+
- c530d95a-22a4-4a82-a00e-c3d1c031c496
|
226
49
|
X-Runtime:
|
227
|
-
- '0.
|
50
|
+
- '0.037418'
|
228
51
|
X-Xss-Protection:
|
229
52
|
- 1; mode=block
|
230
53
|
Content-Length:
|
@@ -241,8 +64,8 @@ http_interactions:
|
|
241
64
|
ICAgIm9mZmVyX2tleSI6IDczNjUyODUsCiAgICAgICJvZmZlcl9ncm91cF9r
|
242
65
|
ZXkiOiAxMzk2OTcsCiAgICAgICJ0aXRsZSI6ICJBbnkgZXh0cmEgbGFyZ2Ug
|
243
66
|
cGl6emEgZm9yIHRoZSBwcmljZSBvZiBsYXJnZSBwaXp6YS4iLAogICAgICAi
|
244
|
-
|
245
|
-
|
67
|
+
c3RhcnRlZF9vbiI6ICIyMDE1LTA1LTE5VDAwOjAwOjAwLjAwMFoiLAogICAg
|
68
|
+
ICAiZXhwaXJlc19vbiI6ICIyMDE1LTEwLTE2VDIzOjU5OjU5Ljk5OVoiLAog
|
246
69
|
ICAgICAidGVybXNfb2ZfdXNlIjogIkRpc2NvdW50IGJhc2VkIG9uIHJlZ3Vs
|
247
70
|
YXIgbWVudSBwcmljZXMuIFNvbWUgc3RvcmVzIGNoYXJnZSAkMSBtb3JlIGZv
|
248
71
|
ciBTaWNpbGlhbiBQYW4gQ3J1c3QuIERlbGl2ZXJ5IGF2YWlsYWJsZSBhdCBw
|
@@ -325,5 +148,5 @@ http_interactions:
|
|
325
148
|
by5hZGNyd3MuY29tL3YxL29mZmVycz9tZW1iZXJfa2V5PUFQSV9SVUJZX0dF
|
326
149
|
TV9URVNUJnBhZ2U9MiZwZXJfcGFnZT0xJnF1ZXJ5PXBpenphIgogIH0KfQ==
|
327
150
|
http_version:
|
328
|
-
recorded_at:
|
151
|
+
recorded_at: Wed, 16 Sep 2015 19:54:11 GMT
|
329
152
|
recorded_with: VCR 2.9.3
|
@@ -1,45 +1,5 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://offer-demo.adcrws.com/v1/offers
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: query=pizza
|
9
|
-
headers:
|
10
|
-
Access-Token:
|
11
|
-
- token_without_limit
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 400
|
19
|
-
message: Bad Request
|
20
|
-
headers:
|
21
|
-
Content-Type:
|
22
|
-
- application/json
|
23
|
-
Date:
|
24
|
-
- Thu, 06 Aug 2015 17:30:04 GMT
|
25
|
-
Server:
|
26
|
-
- nginx/1.6.2
|
27
|
-
Strict-Transport-Security:
|
28
|
-
- max-age=31536000
|
29
|
-
X-Request-Id:
|
30
|
-
- cb372a56-e810-4fc8-bd57-4109e912640c
|
31
|
-
X-Runtime:
|
32
|
-
- '0.000234'
|
33
|
-
Content-Length:
|
34
|
-
- '112'
|
35
|
-
Connection:
|
36
|
-
- keep-alive
|
37
|
-
body:
|
38
|
-
encoding: UTF-8
|
39
|
-
string: '{"status":400,"message":"There was a problem in the JSON you submitted:
|
40
|
-
795: unexpected token at ''query=pizza''"}'
|
41
|
-
http_version:
|
42
|
-
recorded_at: Thu, 06 Aug 2015 17:30:04 GMT
|
43
3
|
- request:
|
44
4
|
method: get
|
45
5
|
uri: https://offer-demo.adcrws.com/v1/offers?query=pizza
|
@@ -48,7 +8,7 @@ http_interactions:
|
|
48
8
|
string: ''
|
49
9
|
headers:
|
50
10
|
Access-Token:
|
51
|
-
-
|
11
|
+
- token_without_filters
|
52
12
|
Content-Type:
|
53
13
|
- application/json
|
54
14
|
Accept:
|
@@ -71,17 +31,21 @@ http_interactions:
|
|
71
31
|
Content-Type:
|
72
32
|
- application/json
|
73
33
|
Date:
|
74
|
-
-
|
34
|
+
- Wed, 16 Sep 2015 19:53:59 GMT
|
75
35
|
Server:
|
76
36
|
- nginx/1.6.2
|
77
37
|
X-Content-Type-Options:
|
78
38
|
- nosniff
|
79
39
|
X-Frame-Options:
|
80
40
|
- SAMEORIGIN
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '1000'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '982'
|
81
45
|
X-Request-Id:
|
82
|
-
-
|
46
|
+
- b7d87196-1deb-42df-888c-df1de7ecf2e3
|
83
47
|
X-Runtime:
|
84
|
-
- '0.
|
48
|
+
- '0.009222'
|
85
49
|
X-Xss-Protection:
|
86
50
|
- 1; mode=block
|
87
51
|
Content-Length:
|
@@ -96,5 +60,5 @@ http_interactions:
|
|
96
60
|
"status": 401
|
97
61
|
}
|
98
62
|
http_version:
|
99
|
-
recorded_at:
|
63
|
+
recorded_at: Wed, 16 Sep 2015 19:53:59 GMT
|
100
64
|
recorded_with: VCR 2.9.3
|
@@ -2,328 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://redeem-demo.adcrws.com/v1/redeem/
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Access-Token:
|
11
|
-
- token_without_limit
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
response:
|
17
|
-
status:
|
18
|
-
code: 200
|
19
|
-
message: OK
|
20
|
-
headers:
|
21
|
-
Content-Type:
|
22
|
-
- application/json;charset=UTF-8
|
23
|
-
Date:
|
24
|
-
- Thu, 06 Aug 2015 18:29:09 GMT
|
25
|
-
Etag:
|
26
|
-
- '"0c787bcf340377985dd46c3d1efe933db"'
|
27
|
-
Server:
|
28
|
-
- nginx/1.6.2
|
29
|
-
Content-Length:
|
30
|
-
- '123'
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
body:
|
34
|
-
encoding: UTF-8
|
35
|
-
string: '{"links":[{"rel":"instore_print","href":"https://redeem-demo.adcrws.com/v1/redeem/10569688/instore_print?member_key=123"}]}'
|
36
|
-
http_version:
|
37
|
-
recorded_at: Thu, 06 Aug 2015 18:29:09 GMT
|
38
|
-
- request:
|
39
|
-
method: get
|
40
|
-
uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/?member_key=API_RUBY_GEM_TEST&return_json=true
|
41
|
-
body:
|
42
|
-
encoding: US-ASCII
|
43
|
-
string: ''
|
44
|
-
headers:
|
45
|
-
Access-Token:
|
46
|
-
- token_without_limit
|
47
|
-
Content-Type:
|
48
|
-
- application/json
|
49
|
-
Accept:
|
50
|
-
- application/json
|
51
|
-
response:
|
52
|
-
status:
|
53
|
-
code: 200
|
54
|
-
message: OK
|
55
|
-
headers:
|
56
|
-
Content-Type:
|
57
|
-
- application/json;charset=UTF-8
|
58
|
-
Date:
|
59
|
-
- Thu, 06 Aug 2015 19:44:16 GMT
|
60
|
-
Etag:
|
61
|
-
- '"0ff5ab06abc27ae6bc33adccffb86e1ff"'
|
62
|
-
Server:
|
63
|
-
- nginx/1.6.2
|
64
|
-
Content-Length:
|
65
|
-
- '136'
|
66
|
-
Connection:
|
67
|
-
- keep-alive
|
68
|
-
body:
|
69
|
-
encoding: UTF-8
|
70
|
-
string: '{"links":[{"rel":"instore_print","href":"https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?member_key=API_RUBY_GEM_TEST"}]}'
|
71
|
-
http_version:
|
72
|
-
recorded_at: Thu, 06 Aug 2015 19:44:16 GMT
|
73
|
-
- request:
|
74
|
-
method: get
|
75
|
-
uri: https://redeem-demo.adcrws.com/v1/redeem/10569688/instore_print?member_key=API_RUBY_GEM_TEST&return_json=true
|
76
|
-
body:
|
77
|
-
encoding: US-ASCII
|
78
|
-
string: ''
|
79
|
-
headers:
|
80
|
-
Access-Token:
|
81
|
-
- token_without_limit
|
82
|
-
Content-Type:
|
83
|
-
- application/json
|
84
|
-
Accept:
|
85
|
-
- application/json
|
86
|
-
response:
|
87
|
-
status:
|
88
|
-
code: 200
|
89
|
-
message: OK
|
90
|
-
headers:
|
91
|
-
Content-Type:
|
92
|
-
- application/json;charset=UTF-8
|
93
|
-
Date:
|
94
|
-
- Thu, 06 Aug 2015 19:48:00 GMT
|
95
|
-
Etag:
|
96
|
-
- '"0b22d0fc630d1e3815c4eab509ad9d1fe"'
|
97
|
-
Server:
|
98
|
-
- nginx/1.6.2
|
99
|
-
Content-Length:
|
100
|
-
- '204'
|
101
|
-
Connection:
|
102
|
-
- keep-alive
|
103
|
-
body:
|
104
|
-
encoding: UTF-8
|
105
|
-
string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/7cb2a054f7609b77568f651eab2807f0afe56038/original.html"},"links":[]}'
|
106
|
-
http_version:
|
107
|
-
recorded_at: Thu, 06 Aug 2015 19:48:00 GMT
|
108
|
-
- request:
|
109
|
-
method: get
|
110
|
-
uri: https://redeem-demo.adcrws.com/v1/redeem/10569688/?member_key=API_RUBY_GEM_TEST&return_json=true
|
111
|
-
body:
|
112
|
-
encoding: US-ASCII
|
113
|
-
string: ''
|
114
|
-
headers:
|
115
|
-
Access-Token:
|
116
|
-
- token_without_limit
|
117
|
-
Content-Type:
|
118
|
-
- application/json
|
119
|
-
Accept:
|
120
|
-
- application/json
|
121
|
-
response:
|
122
|
-
status:
|
123
|
-
code: 200
|
124
|
-
message: OK
|
125
|
-
headers:
|
126
|
-
Content-Type:
|
127
|
-
- application/json;charset=UTF-8
|
128
|
-
Date:
|
129
|
-
- Thu, 06 Aug 2015 19:48:01 GMT
|
130
|
-
Etag:
|
131
|
-
- '"059b9b502de27b3d272a5adc88efe6201"'
|
132
|
-
Server:
|
133
|
-
- nginx/1.6.2
|
134
|
-
Content-Length:
|
135
|
-
- '137'
|
136
|
-
Connection:
|
137
|
-
- keep-alive
|
138
|
-
body:
|
139
|
-
encoding: UTF-8
|
140
|
-
string: '{"links":[{"rel":"instore_print","href":"https://redeem-demo.adcrws.com/v1/redeem/10569688/instore_print?member_key=API_RUBY_GEM_TEST"}]}'
|
141
|
-
http_version:
|
142
|
-
recorded_at: Thu, 06 Aug 2015 19:48:01 GMT
|
143
|
-
- request:
|
144
|
-
method: get
|
145
|
-
uri: https://redeem-demo.adcrws.com/v1/redeem/10569688/?hashify=true&member_key=API_RUBY_GEM_TEST&return_json=true
|
146
|
-
body:
|
147
|
-
encoding: US-ASCII
|
148
|
-
string: ''
|
149
|
-
headers:
|
150
|
-
Access-Token:
|
151
|
-
- token_without_limit
|
152
|
-
Content-Type:
|
153
|
-
- application/json
|
154
|
-
Accept:
|
155
|
-
- application/json
|
156
|
-
response:
|
157
|
-
status:
|
158
|
-
code: 200
|
159
|
-
message: OK
|
160
|
-
headers:
|
161
|
-
Content-Type:
|
162
|
-
- application/json;charset=UTF-8
|
163
|
-
Date:
|
164
|
-
- Thu, 06 Aug 2015 19:50:58 GMT
|
165
|
-
Etag:
|
166
|
-
- '"059b9b502de27b3d272a5adc88efe6201"'
|
167
|
-
Server:
|
168
|
-
- nginx/1.6.2
|
169
|
-
Content-Length:
|
170
|
-
- '137'
|
171
|
-
Connection:
|
172
|
-
- keep-alive
|
173
|
-
body:
|
174
|
-
encoding: UTF-8
|
175
|
-
string: '{"links":[{"rel":"instore_print","href":"https://redeem-demo.adcrws.com/v1/redeem/10569688/instore_print?member_key=API_RUBY_GEM_TEST"}]}'
|
176
|
-
http_version:
|
177
|
-
recorded_at: Thu, 06 Aug 2015 19:50:58 GMT
|
178
|
-
- request:
|
179
|
-
method: get
|
180
|
-
uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?hashify=true&member_key=API_RUBY_GEM_TEST&return_json=true
|
181
|
-
body:
|
182
|
-
encoding: US-ASCII
|
183
|
-
string: ''
|
184
|
-
headers:
|
185
|
-
Access-Token:
|
186
|
-
- token_without_limit
|
187
|
-
Content-Type:
|
188
|
-
- application/json
|
189
|
-
Accept:
|
190
|
-
- application/json
|
191
|
-
response:
|
192
|
-
status:
|
193
|
-
code: 200
|
194
|
-
message: OK
|
195
|
-
headers:
|
196
|
-
Content-Type:
|
197
|
-
- application/json;charset=UTF-8
|
198
|
-
Date:
|
199
|
-
- Thu, 06 Aug 2015 19:50:58 GMT
|
200
|
-
Etag:
|
201
|
-
- '"09bb8372d1970dc3b3762f72c95057103"'
|
202
|
-
Server:
|
203
|
-
- nginx/1.6.2
|
204
|
-
Content-Length:
|
205
|
-
- '204'
|
206
|
-
Connection:
|
207
|
-
- keep-alive
|
208
|
-
body:
|
209
|
-
encoding: UTF-8
|
210
|
-
string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/1cc741780bb9e9ec32d427bfd9af3c966171273c/original.html"},"links":[]}'
|
211
|
-
http_version:
|
212
|
-
recorded_at: Thu, 06 Aug 2015 19:50:58 GMT
|
213
|
-
- request:
|
214
|
-
method: get
|
215
|
-
uri: https://redeem-demo.adcrws.com/v1/redeem/10569688/instore_print?hashify=true&member_key=API_RUBY_GEM_TEST&return_json=true
|
216
|
-
body:
|
217
|
-
encoding: US-ASCII
|
218
|
-
string: ''
|
219
|
-
headers:
|
220
|
-
Access-Token:
|
221
|
-
- token_without_limit
|
222
|
-
Content-Type:
|
223
|
-
- application/json
|
224
|
-
Accept:
|
225
|
-
- application/json
|
226
|
-
response:
|
227
|
-
status:
|
228
|
-
code: 200
|
229
|
-
message: OK
|
230
|
-
headers:
|
231
|
-
Content-Type:
|
232
|
-
- application/json;charset=UTF-8
|
233
|
-
Date:
|
234
|
-
- Thu, 06 Aug 2015 19:51:13 GMT
|
235
|
-
Etag:
|
236
|
-
- '"074dbde398a3c4db2772cf61dac1749e3"'
|
237
|
-
Server:
|
238
|
-
- nginx/1.6.2
|
239
|
-
Content-Length:
|
240
|
-
- '204'
|
241
|
-
Connection:
|
242
|
-
- keep-alive
|
243
|
-
body:
|
244
|
-
encoding: UTF-8
|
245
|
-
string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/b5ea7e93fe803745c5a9d87e1fe97a20a896cfd5/original.html"},"links":[]}'
|
246
|
-
http_version:
|
247
|
-
recorded_at: Thu, 06 Aug 2015 19:51:13 GMT
|
248
|
-
- request:
|
249
|
-
method: get
|
250
|
-
uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/?hashify=true&member_key=API_RUBY_GEM_TEST&return_json=true
|
251
|
-
body:
|
252
|
-
encoding: US-ASCII
|
253
|
-
string: ''
|
254
|
-
headers:
|
255
|
-
Access-Token:
|
256
|
-
- token_without_limit
|
257
|
-
Content-Type:
|
258
|
-
- application/json
|
259
|
-
Accept:
|
260
|
-
- application/json
|
261
|
-
response:
|
262
|
-
status:
|
263
|
-
code: 200
|
264
|
-
message: OK
|
265
|
-
headers:
|
266
|
-
Content-Type:
|
267
|
-
- application/json;charset=UTF-8
|
268
|
-
Date:
|
269
|
-
- Thu, 06 Aug 2015 19:51:13 GMT
|
270
|
-
Etag:
|
271
|
-
- '"0ff5ab06abc27ae6bc33adccffb86e1ff"'
|
272
|
-
Server:
|
273
|
-
- nginx/1.6.2
|
274
|
-
Content-Length:
|
275
|
-
- '136'
|
276
|
-
Connection:
|
277
|
-
- keep-alive
|
278
|
-
body:
|
279
|
-
encoding: UTF-8
|
280
|
-
string: '{"links":[{"rel":"instore_print","href":"https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?member_key=API_RUBY_GEM_TEST"}]}'
|
281
|
-
http_version:
|
282
|
-
recorded_at: Thu, 06 Aug 2015 19:51:13 GMT
|
283
|
-
- request:
|
284
|
-
method: get
|
285
|
-
uri: https://redeem-demo.adcrws.com/v1/redeem/10569688/?member_key=API_RUBY_GEM_TEST
|
286
|
-
body:
|
287
|
-
encoding: US-ASCII
|
288
|
-
string: ''
|
289
|
-
headers:
|
290
|
-
Access-Token:
|
291
|
-
- token_without_limit
|
292
|
-
Content-Type:
|
293
|
-
- application/json
|
294
|
-
Accept:
|
295
|
-
- application/json
|
296
|
-
response:
|
297
|
-
status:
|
298
|
-
code: 200
|
299
|
-
message: OK
|
300
|
-
headers:
|
301
|
-
Content-Type:
|
302
|
-
- application/json;charset=UTF-8
|
303
|
-
Date:
|
304
|
-
- Thu, 27 Aug 2015 19:48:08 GMT
|
305
|
-
Etag:
|
306
|
-
- '"059b9b502de27b3d272a5adc88efe6201"'
|
307
|
-
Server:
|
308
|
-
- nginx/1.6.2
|
309
|
-
Content-Length:
|
310
|
-
- '137'
|
311
|
-
Connection:
|
312
|
-
- keep-alive
|
313
|
-
body:
|
314
|
-
encoding: UTF-8
|
315
|
-
string: '{"links":[{"rel":"instore_print","href":"https://redeem-demo.adcrws.com/v1/redeem/10569688/instore_print?member_key=API_RUBY_GEM_TEST"}]}'
|
316
|
-
http_version:
|
317
|
-
recorded_at: Thu, 27 Aug 2015 19:48:08 GMT
|
318
|
-
- request:
|
319
|
-
method: get
|
320
|
-
uri: https://redeem-demo.adcrws.com/v1/redeem/10569688/instore_print?member_key=API_RUBY_GEM_TEST
|
5
|
+
uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?member_key=API_RUBY_GEM_TEST
|
321
6
|
body:
|
322
7
|
encoding: US-ASCII
|
323
8
|
string: ''
|
324
9
|
headers:
|
325
10
|
Access-Token:
|
326
|
-
-
|
11
|
+
- token_without_filters
|
327
12
|
Content-Type:
|
328
13
|
- application/json
|
329
14
|
Accept:
|
@@ -336,9 +21,9 @@ http_interactions:
|
|
336
21
|
Content-Type:
|
337
22
|
- application/json;charset=UTF-8
|
338
23
|
Date:
|
339
|
-
-
|
24
|
+
- Wed, 16 Sep 2015 19:54:11 GMT
|
340
25
|
Etag:
|
341
|
-
- '"
|
26
|
+
- '"0f22995137cafd1ea14a80063a8509d4a"'
|
342
27
|
Server:
|
343
28
|
- nginx/1.6.2
|
344
29
|
Content-Length:
|
@@ -347,9 +32,9 @@ http_interactions:
|
|
347
32
|
- keep-alive
|
348
33
|
body:
|
349
34
|
encoding: UTF-8
|
350
|
-
string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/
|
35
|
+
string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/b88e6adb451a2d67ea6a9b7c7c0613ca0d047300/original.html"},"links":[]}'
|
351
36
|
http_version:
|
352
|
-
recorded_at:
|
37
|
+
recorded_at: Wed, 16 Sep 2015 19:54:11 GMT
|
353
38
|
- request:
|
354
39
|
method: get
|
355
40
|
uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/?member_key=API_RUBY_GEM_TEST
|
@@ -358,7 +43,7 @@ http_interactions:
|
|
358
43
|
string: ''
|
359
44
|
headers:
|
360
45
|
Access-Token:
|
361
|
-
-
|
46
|
+
- token_without_filters
|
362
47
|
Content-Type:
|
363
48
|
- application/json
|
364
49
|
Accept:
|
@@ -371,7 +56,7 @@ http_interactions:
|
|
371
56
|
Content-Type:
|
372
57
|
- application/json;charset=UTF-8
|
373
58
|
Date:
|
374
|
-
-
|
59
|
+
- Wed, 16 Sep 2015 19:54:12 GMT
|
375
60
|
Etag:
|
376
61
|
- '"0ff5ab06abc27ae6bc33adccffb86e1ff"'
|
377
62
|
Server:
|
@@ -384,40 +69,5 @@ http_interactions:
|
|
384
69
|
encoding: UTF-8
|
385
70
|
string: '{"links":[{"rel":"instore_print","href":"https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?member_key=API_RUBY_GEM_TEST"}]}'
|
386
71
|
http_version:
|
387
|
-
recorded_at:
|
388
|
-
- request:
|
389
|
-
method: get
|
390
|
-
uri: https://redeem-demo.adcrws.com/v1/redeem/7365285/instore_print?member_key=API_RUBY_GEM_TEST
|
391
|
-
body:
|
392
|
-
encoding: US-ASCII
|
393
|
-
string: ''
|
394
|
-
headers:
|
395
|
-
Access-Token:
|
396
|
-
- token_without_limit
|
397
|
-
Content-Type:
|
398
|
-
- application/json
|
399
|
-
Accept:
|
400
|
-
- application/json
|
401
|
-
response:
|
402
|
-
status:
|
403
|
-
code: 200
|
404
|
-
message: OK
|
405
|
-
headers:
|
406
|
-
Content-Type:
|
407
|
-
- application/json;charset=UTF-8
|
408
|
-
Date:
|
409
|
-
- Fri, 11 Sep 2015 20:33:20 GMT
|
410
|
-
Etag:
|
411
|
-
- '"0a22b16c020636a6f3934d701478fe9fb"'
|
412
|
-
Server:
|
413
|
-
- nginx/1.6.2
|
414
|
-
Content-Length:
|
415
|
-
- '204'
|
416
|
-
Connection:
|
417
|
-
- keep-alive
|
418
|
-
body:
|
419
|
-
encoding: UTF-8
|
420
|
-
string: '{"redemption_method":"instore_print","content_type":"text/html","details":{"link":"http://static-demo.accessdevelopment.com/temp/coupon/292f89af98fdb2ab262e609d98a0866fdf8b31c4/original.html"},"links":[]}'
|
421
|
-
http_version:
|
422
|
-
recorded_at: Fri, 11 Sep 2015 20:33:19 GMT
|
72
|
+
recorded_at: Wed, 16 Sep 2015 19:54:12 GMT
|
423
73
|
recorded_with: VCR 2.9.3
|