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,501 +1,5 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://offer-demo.adcrws.com/v1/stores/19011540?member_key=guest
|
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
|
-
Access-Control-Allow-Headers:
|
22
|
-
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
23
|
-
Access-Control-Allow-Methods:
|
24
|
-
- POST, GET, PUT, DELETE, OPTIONS
|
25
|
-
Access-Control-Max-Age:
|
26
|
-
- '1728000'
|
27
|
-
Access-Control-Request-Method:
|
28
|
-
- GET
|
29
|
-
Cache-Control:
|
30
|
-
- max-age=0, private, must-revalidate
|
31
|
-
Content-Type:
|
32
|
-
- application/json
|
33
|
-
Date:
|
34
|
-
- Thu, 06 Aug 2015 17:49:51 GMT
|
35
|
-
Etag:
|
36
|
-
- '"ecb106d3f2a28fc6b96840296863ad86"'
|
37
|
-
Server:
|
38
|
-
- nginx/1.6.2
|
39
|
-
Strict-Transport-Security:
|
40
|
-
- max-age=31536000
|
41
|
-
X-Content-Type-Options:
|
42
|
-
- nosniff
|
43
|
-
X-Frame-Options:
|
44
|
-
- SAMEORIGIN
|
45
|
-
X-Request-Id:
|
46
|
-
- 133f5cbd-de0d-4d2c-94f0-1bedaa5c16f5
|
47
|
-
X-Runtime:
|
48
|
-
- '0.014419'
|
49
|
-
X-Xss-Protection:
|
50
|
-
- 1; mode=block
|
51
|
-
Content-Length:
|
52
|
-
- '1124'
|
53
|
-
Connection:
|
54
|
-
- keep-alive
|
55
|
-
body:
|
56
|
-
encoding: UTF-8
|
57
|
-
string: |-
|
58
|
-
{
|
59
|
-
"stores": [
|
60
|
-
{
|
61
|
-
"store_key": 19011540,
|
62
|
-
"name": "Zuma Tex-Mex Grill",
|
63
|
-
"description": "Deep in the Heart of Boston--Zuma Tex Mex brings the flavors of the southwest to Faneuil Hall. We are proud to serve the freshest ingredients and make almost everything from scratch-- from our hand cut fries,fresh daily pico de gallo, our home made chorizo sausage to our house smoked BBQ.",
|
64
|
-
"logo_url": "https://static-demo.accessdevelopment.com/brand/bdd152cd64b2673b6f7f2c14d76d29ae05b8299d/original.png",
|
65
|
-
"national": false,
|
66
|
-
"active_location_count": 1,
|
67
|
-
"active_offer_count": 1,
|
68
|
-
"store_categories": [
|
69
|
-
{
|
70
|
-
"category_name": "Casual & Fine Dining",
|
71
|
-
"category_key": 1009,
|
72
|
-
"category_parent_key": 39,
|
73
|
-
"category_parent_name": "Dining & Food",
|
74
|
-
"category_type": "subcategory"
|
75
|
-
}
|
76
|
-
],
|
77
|
-
"links": {
|
78
|
-
"find_offers_for_this_store": "https://offer-demo.adcrws.com/v1/offers?store_key=19011540",
|
79
|
-
"find_locations_for_this_store": "https://offer-demo.adcrws.com/v1/locations?store_key=19011540"
|
80
|
-
}
|
81
|
-
}
|
82
|
-
]
|
83
|
-
}
|
84
|
-
http_version:
|
85
|
-
recorded_at: Thu, 06 Aug 2015 17:49:51 GMT
|
86
|
-
- request:
|
87
|
-
method: get
|
88
|
-
uri: https://offer-demo.adcrws.com/v1/stores/219558835?member_key=guest
|
89
|
-
body:
|
90
|
-
encoding: US-ASCII
|
91
|
-
string: ''
|
92
|
-
headers:
|
93
|
-
Access-Token:
|
94
|
-
- token_without_limit
|
95
|
-
Content-Type:
|
96
|
-
- application/json
|
97
|
-
Accept:
|
98
|
-
- application/json
|
99
|
-
response:
|
100
|
-
status:
|
101
|
-
code: 200
|
102
|
-
message: OK
|
103
|
-
headers:
|
104
|
-
Access-Control-Allow-Headers:
|
105
|
-
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
106
|
-
Access-Control-Allow-Methods:
|
107
|
-
- POST, GET, PUT, DELETE, OPTIONS
|
108
|
-
Access-Control-Max-Age:
|
109
|
-
- '1728000'
|
110
|
-
Access-Control-Request-Method:
|
111
|
-
- GET
|
112
|
-
Cache-Control:
|
113
|
-
- max-age=0, private, must-revalidate
|
114
|
-
Content-Type:
|
115
|
-
- application/json
|
116
|
-
Date:
|
117
|
-
- Thu, 06 Aug 2015 17:51:06 GMT
|
118
|
-
Etag:
|
119
|
-
- '"e01c3349774dc2ff1588316eaf629c3e"'
|
120
|
-
Server:
|
121
|
-
- nginx/1.6.2
|
122
|
-
Strict-Transport-Security:
|
123
|
-
- max-age=31536000
|
124
|
-
X-Content-Type-Options:
|
125
|
-
- nosniff
|
126
|
-
X-Frame-Options:
|
127
|
-
- SAMEORIGIN
|
128
|
-
X-Request-Id:
|
129
|
-
- ebeca953-bdbc-4fdc-bd31-10844c1879c1
|
130
|
-
X-Runtime:
|
131
|
-
- '0.016393'
|
132
|
-
X-Xss-Protection:
|
133
|
-
- 1; mode=block
|
134
|
-
Content-Length:
|
135
|
-
- '1114'
|
136
|
-
Connection:
|
137
|
-
- keep-alive
|
138
|
-
body:
|
139
|
-
encoding: ASCII-8BIT
|
140
|
-
string: !binary |-
|
141
|
-
ewogICJzdG9yZXMiOiBbCiAgICB7CiAgICAgICJzdG9yZV9rZXkiOiAyMTk1
|
142
|
-
NTg4MzUsCiAgICAgICJuYW1lIjogIkNyZWVrd29vZCBWZXRlcmluYXJ5IEhv
|
143
|
-
c3BpdGFsIiwKICAgICAgImRlc2NyaXB0aW9uIjogIkNyZWVrd29vZCBWZXRl
|
144
|
-
cmluYXJ5IEhvc3BpdGFswqAgcHJvdmlkZXMgb3V0c3RhbmRpbmcgdmV0ZXJp
|
145
|
-
bmFyeSBtZWRpY2FsIGFuZCBzdXJnaWNhbCBjYXJlLCBpbmNsdWRpbmcgbGFz
|
146
|
-
ZXIgc3VyZ2VyeSBhbmQgdGhlcmFweS4gU2VydmljZXMgaW5jbHVkZSBtZWRp
|
147
|
-
Y2luZSwgZGlhZ25vc3RpY3MsIGRlbnRpc3RyeSwgbGFzZXIgYW5kIGNvbnZl
|
148
|
-
bnRpb25hbCBzdXJnZXJ5LCB0aGVyYXBldXRpYyBsYXNlciB0cmVhdG1lbnQs
|
149
|
-
IGxpbWl0ZWQgZ3Jvb21pbmcsIGFuZCBwcm9kdWN0cyBmb3IgcGV0IGhlYWx0
|
150
|
-
aCBjYXJlLiIsCiAgICAgICJsb2dvX3VybCI6ICJodHRwczovL3N0YXRpYy1k
|
151
|
-
ZW1vLmFjY2Vzc2RldmVsb3BtZW50LmNvbS9icmFuZC81NjlhY2FhNGU0YWZi
|
152
|
-
NWNjNTg0NGZjZTU2YWVmZDZkOGE5NDFlOTg0L29yaWdpbmFsLnBuZyIsCiAg
|
153
|
-
ICAgICJuYXRpb25hbCI6IGZhbHNlLAogICAgICAiYWN0aXZlX2xvY2F0aW9u
|
154
|
-
X2NvdW50IjogMSwKICAgICAgImFjdGl2ZV9vZmZlcl9jb3VudCI6IDEsCiAg
|
155
|
-
ICAgICJzdG9yZV9jYXRlZ29yaWVzIjogWwogICAgICAgIHsKICAgICAgICAg
|
156
|
-
ICJjYXRlZ29yeV9uYW1lIjogIlNlcnZpY2VzIiwKICAgICAgICAgICJjYXRl
|
157
|
-
Z29yeV9rZXkiOiA1MCwKICAgICAgICAgICJjYXRlZ29yeV9wYXJlbnRfa2V5
|
158
|
-
IjogbnVsbCwKICAgICAgICAgICJjYXRlZ29yeV9wYXJlbnRfbmFtZSI6IG51
|
159
|
-
bGwsCiAgICAgICAgICAiY2F0ZWdvcnlfdHlwZSI6ICJjYXRlZ29yeSIKICAg
|
160
|
-
ICAgICB9CiAgICAgIF0sCiAgICAgICJsaW5rcyI6IHsKICAgICAgICAiZmlu
|
161
|
-
ZF9vZmZlcnNfZm9yX3RoaXNfc3RvcmUiOiAiaHR0cHM6Ly9vZmZlci1kZW1v
|
162
|
-
LmFkY3J3cy5jb20vdjEvb2ZmZXJzP3N0b3JlX2tleT0yMTk1NTg4MzUiLAog
|
163
|
-
ICAgICAgICJmaW5kX2xvY2F0aW9uc19mb3JfdGhpc19zdG9yZSI6ICJodHRw
|
164
|
-
czovL29mZmVyLWRlbW8uYWRjcndzLmNvbS92MS9sb2NhdGlvbnM/c3RvcmVf
|
165
|
-
a2V5PTIxOTU1ODgzNSIKICAgICAgfQogICAgfQogIF0KfQ==
|
166
|
-
http_version:
|
167
|
-
recorded_at: Thu, 06 Aug 2015 17:51:06 GMT
|
168
|
-
- request:
|
169
|
-
method: get
|
170
|
-
uri: https://offer-demo.adcrws.com/v1/stores/219558835?member_key=API_RUBY_GEM_TEST
|
171
|
-
body:
|
172
|
-
encoding: US-ASCII
|
173
|
-
string: ''
|
174
|
-
headers:
|
175
|
-
Access-Token:
|
176
|
-
- token_without_limit
|
177
|
-
Content-Type:
|
178
|
-
- application/json
|
179
|
-
Accept:
|
180
|
-
- application/json
|
181
|
-
response:
|
182
|
-
status:
|
183
|
-
code: 200
|
184
|
-
message: OK
|
185
|
-
headers:
|
186
|
-
Access-Control-Allow-Headers:
|
187
|
-
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
188
|
-
Access-Control-Allow-Methods:
|
189
|
-
- POST, GET, PUT, DELETE, OPTIONS
|
190
|
-
Access-Control-Max-Age:
|
191
|
-
- '1728000'
|
192
|
-
Access-Control-Request-Method:
|
193
|
-
- GET
|
194
|
-
Cache-Control:
|
195
|
-
- max-age=0, private, must-revalidate
|
196
|
-
Content-Type:
|
197
|
-
- application/json
|
198
|
-
Date:
|
199
|
-
- Thu, 06 Aug 2015 22:57:19 GMT
|
200
|
-
Etag:
|
201
|
-
- '"e01c3349774dc2ff1588316eaf629c3e"'
|
202
|
-
Server:
|
203
|
-
- nginx/1.6.2
|
204
|
-
Strict-Transport-Security:
|
205
|
-
- max-age=31536000
|
206
|
-
X-Content-Type-Options:
|
207
|
-
- nosniff
|
208
|
-
X-Frame-Options:
|
209
|
-
- SAMEORIGIN
|
210
|
-
X-Request-Id:
|
211
|
-
- 8396cac4-2ba7-4051-a9a6-e1b0e8438cd9
|
212
|
-
X-Runtime:
|
213
|
-
- '0.015740'
|
214
|
-
X-Xss-Protection:
|
215
|
-
- 1; mode=block
|
216
|
-
Content-Length:
|
217
|
-
- '1114'
|
218
|
-
Connection:
|
219
|
-
- keep-alive
|
220
|
-
body:
|
221
|
-
encoding: ASCII-8BIT
|
222
|
-
string: !binary |-
|
223
|
-
ewogICJzdG9yZXMiOiBbCiAgICB7CiAgICAgICJzdG9yZV9rZXkiOiAyMTk1
|
224
|
-
NTg4MzUsCiAgICAgICJuYW1lIjogIkNyZWVrd29vZCBWZXRlcmluYXJ5IEhv
|
225
|
-
c3BpdGFsIiwKICAgICAgImRlc2NyaXB0aW9uIjogIkNyZWVrd29vZCBWZXRl
|
226
|
-
cmluYXJ5IEhvc3BpdGFswqAgcHJvdmlkZXMgb3V0c3RhbmRpbmcgdmV0ZXJp
|
227
|
-
bmFyeSBtZWRpY2FsIGFuZCBzdXJnaWNhbCBjYXJlLCBpbmNsdWRpbmcgbGFz
|
228
|
-
ZXIgc3VyZ2VyeSBhbmQgdGhlcmFweS4gU2VydmljZXMgaW5jbHVkZSBtZWRp
|
229
|
-
Y2luZSwgZGlhZ25vc3RpY3MsIGRlbnRpc3RyeSwgbGFzZXIgYW5kIGNvbnZl
|
230
|
-
bnRpb25hbCBzdXJnZXJ5LCB0aGVyYXBldXRpYyBsYXNlciB0cmVhdG1lbnQs
|
231
|
-
IGxpbWl0ZWQgZ3Jvb21pbmcsIGFuZCBwcm9kdWN0cyBmb3IgcGV0IGhlYWx0
|
232
|
-
aCBjYXJlLiIsCiAgICAgICJsb2dvX3VybCI6ICJodHRwczovL3N0YXRpYy1k
|
233
|
-
ZW1vLmFjY2Vzc2RldmVsb3BtZW50LmNvbS9icmFuZC81NjlhY2FhNGU0YWZi
|
234
|
-
NWNjNTg0NGZjZTU2YWVmZDZkOGE5NDFlOTg0L29yaWdpbmFsLnBuZyIsCiAg
|
235
|
-
ICAgICJuYXRpb25hbCI6IGZhbHNlLAogICAgICAiYWN0aXZlX2xvY2F0aW9u
|
236
|
-
X2NvdW50IjogMSwKICAgICAgImFjdGl2ZV9vZmZlcl9jb3VudCI6IDEsCiAg
|
237
|
-
ICAgICJzdG9yZV9jYXRlZ29yaWVzIjogWwogICAgICAgIHsKICAgICAgICAg
|
238
|
-
ICJjYXRlZ29yeV9uYW1lIjogIlNlcnZpY2VzIiwKICAgICAgICAgICJjYXRl
|
239
|
-
Z29yeV9rZXkiOiA1MCwKICAgICAgICAgICJjYXRlZ29yeV9wYXJlbnRfa2V5
|
240
|
-
IjogbnVsbCwKICAgICAgICAgICJjYXRlZ29yeV9wYXJlbnRfbmFtZSI6IG51
|
241
|
-
bGwsCiAgICAgICAgICAiY2F0ZWdvcnlfdHlwZSI6ICJjYXRlZ29yeSIKICAg
|
242
|
-
ICAgICB9CiAgICAgIF0sCiAgICAgICJsaW5rcyI6IHsKICAgICAgICAiZmlu
|
243
|
-
ZF9vZmZlcnNfZm9yX3RoaXNfc3RvcmUiOiAiaHR0cHM6Ly9vZmZlci1kZW1v
|
244
|
-
LmFkY3J3cy5jb20vdjEvb2ZmZXJzP3N0b3JlX2tleT0yMTk1NTg4MzUiLAog
|
245
|
-
ICAgICAgICJmaW5kX2xvY2F0aW9uc19mb3JfdGhpc19zdG9yZSI6ICJodHRw
|
246
|
-
czovL29mZmVyLWRlbW8uYWRjcndzLmNvbS92MS9sb2NhdGlvbnM/c3RvcmVf
|
247
|
-
a2V5PTIxOTU1ODgzNSIKICAgICAgfQogICAgfQogIF0KfQ==
|
248
|
-
http_version:
|
249
|
-
recorded_at: Thu, 06 Aug 2015 22:57:19 GMT
|
250
|
-
- request:
|
251
|
-
method: get
|
252
|
-
uri: https://offer-demo.adcrws.com/v1/stores/19011540?member_key=API_RUBY_GEM_TEST
|
253
|
-
body:
|
254
|
-
encoding: US-ASCII
|
255
|
-
string: ''
|
256
|
-
headers:
|
257
|
-
Access-Token:
|
258
|
-
- token_without_limit
|
259
|
-
Content-Type:
|
260
|
-
- application/json
|
261
|
-
Accept:
|
262
|
-
- application/json
|
263
|
-
response:
|
264
|
-
status:
|
265
|
-
code: 200
|
266
|
-
message: OK
|
267
|
-
headers:
|
268
|
-
Access-Control-Allow-Headers:
|
269
|
-
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
270
|
-
Access-Control-Allow-Methods:
|
271
|
-
- POST, GET, PUT, DELETE, OPTIONS
|
272
|
-
Access-Control-Max-Age:
|
273
|
-
- '1728000'
|
274
|
-
Access-Control-Request-Method:
|
275
|
-
- GET
|
276
|
-
Cache-Control:
|
277
|
-
- max-age=0, private, must-revalidate
|
278
|
-
Content-Type:
|
279
|
-
- application/json
|
280
|
-
Date:
|
281
|
-
- Wed, 12 Aug 2015 17:46:33 GMT
|
282
|
-
Etag:
|
283
|
-
- '"ecb106d3f2a28fc6b96840296863ad86"'
|
284
|
-
Server:
|
285
|
-
- nginx/1.6.2
|
286
|
-
Strict-Transport-Security:
|
287
|
-
- max-age=31536000
|
288
|
-
X-Content-Type-Options:
|
289
|
-
- nosniff
|
290
|
-
X-Frame-Options:
|
291
|
-
- SAMEORIGIN
|
292
|
-
X-Request-Id:
|
293
|
-
- f55f0813-067b-499e-921d-88dfa554fdda
|
294
|
-
X-Runtime:
|
295
|
-
- '0.017595'
|
296
|
-
X-Xss-Protection:
|
297
|
-
- 1; mode=block
|
298
|
-
Content-Length:
|
299
|
-
- '1124'
|
300
|
-
Connection:
|
301
|
-
- keep-alive
|
302
|
-
body:
|
303
|
-
encoding: UTF-8
|
304
|
-
string: |-
|
305
|
-
{
|
306
|
-
"stores": [
|
307
|
-
{
|
308
|
-
"store_key": 19011540,
|
309
|
-
"name": "Zuma Tex-Mex Grill",
|
310
|
-
"description": "Deep in the Heart of Boston--Zuma Tex Mex brings the flavors of the southwest to Faneuil Hall. We are proud to serve the freshest ingredients and make almost everything from scratch-- from our hand cut fries,fresh daily pico de gallo, our home made chorizo sausage to our house smoked BBQ.",
|
311
|
-
"logo_url": "https://static-demo.accessdevelopment.com/brand/bdd152cd64b2673b6f7f2c14d76d29ae05b8299d/original.png",
|
312
|
-
"national": false,
|
313
|
-
"active_location_count": 1,
|
314
|
-
"active_offer_count": 1,
|
315
|
-
"store_categories": [
|
316
|
-
{
|
317
|
-
"category_name": "Casual & Fine Dining",
|
318
|
-
"category_key": 1009,
|
319
|
-
"category_parent_key": 39,
|
320
|
-
"category_parent_name": "Dining & Food",
|
321
|
-
"category_type": "subcategory"
|
322
|
-
}
|
323
|
-
],
|
324
|
-
"links": {
|
325
|
-
"find_offers_for_this_store": "https://offer-demo.adcrws.com/v1/offers?store_key=19011540",
|
326
|
-
"find_locations_for_this_store": "https://offer-demo.adcrws.com/v1/locations?store_key=19011540"
|
327
|
-
}
|
328
|
-
}
|
329
|
-
]
|
330
|
-
}
|
331
|
-
http_version:
|
332
|
-
recorded_at: Wed, 12 Aug 2015 17:46:33 GMT
|
333
|
-
- request:
|
334
|
-
method: get
|
335
|
-
uri: https://offer-demo.adcrws.com/v1/stores/31352623?member_key=API_RUBY_GEM_TEST
|
336
|
-
body:
|
337
|
-
encoding: US-ASCII
|
338
|
-
string: ''
|
339
|
-
headers:
|
340
|
-
Access-Token:
|
341
|
-
- token_without_limit
|
342
|
-
Content-Type:
|
343
|
-
- application/json
|
344
|
-
Accept:
|
345
|
-
- application/json
|
346
|
-
response:
|
347
|
-
status:
|
348
|
-
code: 200
|
349
|
-
message: OK
|
350
|
-
headers:
|
351
|
-
Access-Control-Allow-Headers:
|
352
|
-
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
353
|
-
Access-Control-Allow-Methods:
|
354
|
-
- POST, GET, PUT, DELETE, OPTIONS
|
355
|
-
Access-Control-Max-Age:
|
356
|
-
- '1728000'
|
357
|
-
Access-Control-Request-Method:
|
358
|
-
- GET
|
359
|
-
Cache-Control:
|
360
|
-
- max-age=0, private, must-revalidate
|
361
|
-
Content-Type:
|
362
|
-
- application/json
|
363
|
-
Date:
|
364
|
-
- Thu, 27 Aug 2015 19:50:28 GMT
|
365
|
-
Etag:
|
366
|
-
- '"90228138058175ae1757c3b973c909dd"'
|
367
|
-
Server:
|
368
|
-
- nginx/1.6.2
|
369
|
-
Strict-Transport-Security:
|
370
|
-
- max-age=31536000
|
371
|
-
X-Content-Type-Options:
|
372
|
-
- nosniff
|
373
|
-
X-Frame-Options:
|
374
|
-
- SAMEORIGIN
|
375
|
-
X-Request-Id:
|
376
|
-
- 4fa8ebf1-4630-4f9b-a587-81feb67e102f
|
377
|
-
X-Runtime:
|
378
|
-
- '0.017621'
|
379
|
-
X-Xss-Protection:
|
380
|
-
- 1; mode=block
|
381
|
-
Transfer-Encoding:
|
382
|
-
- chunked
|
383
|
-
Connection:
|
384
|
-
- keep-alive
|
385
|
-
body:
|
386
|
-
encoding: UTF-8
|
387
|
-
string: |-
|
388
|
-
{
|
389
|
-
"stores": [
|
390
|
-
{
|
391
|
-
"store_key": 31352623,
|
392
|
-
"name": "Ruibal's Plants of Texas",
|
393
|
-
"description": "Welcome to Ruibal's Plants of Texas. Dallas' Premier Garden Center. Plants, Shrubs, Garden decor and more. Make Ruibal's your choice for all your planting needs. From indoor and outdoor plants, to pottery and statuary, to ideas and even help planting, we're here for you. Ruibal's is where Dallas goes for plants!",
|
394
|
-
"logo_url": "https://static-demo.accessdevelopment.com/brand/9b50a7909b11d1406fc54b0fc631943337a5a39d/original.png",
|
395
|
-
"national": false,
|
396
|
-
"active_location_count": 3,
|
397
|
-
"active_offer_count": 3,
|
398
|
-
"store_categories": [
|
399
|
-
{
|
400
|
-
"category_name": "Garden Centers",
|
401
|
-
"category_key": 1050,
|
402
|
-
"category_parent_key": 1039,
|
403
|
-
"category_parent_name": "Home & Garden",
|
404
|
-
"category_type": "subcategory"
|
405
|
-
}
|
406
|
-
],
|
407
|
-
"links": {
|
408
|
-
"find_offers_for_this_store": "https://offer-demo.adcrws.com/v1/offers?store_key=31352623",
|
409
|
-
"find_locations_for_this_store": "https://offer-demo.adcrws.com/v1/locations?store_key=31352623"
|
410
|
-
}
|
411
|
-
}
|
412
|
-
]
|
413
|
-
}
|
414
|
-
http_version:
|
415
|
-
recorded_at: Thu, 27 Aug 2015 19:50:28 GMT
|
416
|
-
- request:
|
417
|
-
method: get
|
418
|
-
uri: https://offer-demo.adcrws.com/v1/stores/30368039?member_key=API_RUBY_GEM_TEST
|
419
|
-
body:
|
420
|
-
encoding: US-ASCII
|
421
|
-
string: ''
|
422
|
-
headers:
|
423
|
-
Access-Token:
|
424
|
-
- token_without_limit
|
425
|
-
Content-Type:
|
426
|
-
- application/json
|
427
|
-
Accept:
|
428
|
-
- application/json
|
429
|
-
response:
|
430
|
-
status:
|
431
|
-
code: 200
|
432
|
-
message: OK
|
433
|
-
headers:
|
434
|
-
Access-Control-Allow-Headers:
|
435
|
-
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
436
|
-
Access-Control-Allow-Methods:
|
437
|
-
- POST, GET, PUT, DELETE, OPTIONS
|
438
|
-
Access-Control-Max-Age:
|
439
|
-
- '1728000'
|
440
|
-
Access-Control-Request-Method:
|
441
|
-
- GET
|
442
|
-
Cache-Control:
|
443
|
-
- max-age=0, private, must-revalidate
|
444
|
-
Content-Type:
|
445
|
-
- application/json
|
446
|
-
Date:
|
447
|
-
- Thu, 27 Aug 2015 20:17:38 GMT
|
448
|
-
Etag:
|
449
|
-
- '"fb9bca86cc721fad64d27068bd1187d8"'
|
450
|
-
Server:
|
451
|
-
- nginx/1.6.2
|
452
|
-
Strict-Transport-Security:
|
453
|
-
- max-age=31536000
|
454
|
-
X-Content-Type-Options:
|
455
|
-
- nosniff
|
456
|
-
X-Frame-Options:
|
457
|
-
- SAMEORIGIN
|
458
|
-
X-Request-Id:
|
459
|
-
- adfb94d1-3746-41c2-b62b-d1c7142d708c
|
460
|
-
X-Runtime:
|
461
|
-
- '0.016851'
|
462
|
-
X-Xss-Protection:
|
463
|
-
- 1; mode=block
|
464
|
-
Content-Length:
|
465
|
-
- '1011'
|
466
|
-
Connection:
|
467
|
-
- keep-alive
|
468
|
-
body:
|
469
|
-
encoding: UTF-8
|
470
|
-
string: |-
|
471
|
-
{
|
472
|
-
"stores": [
|
473
|
-
{
|
474
|
-
"store_key": 30368039,
|
475
|
-
"name": "Country Club Bowl",
|
476
|
-
"description": "Country Club Bowl is a great place to have fun times with family and friends. Our 40 lanes offer state-of-the-art bowling equipment for both league and recreational bowlers.",
|
477
|
-
"logo_url": "https://static-demo.accessdevelopment.com/brand/09643f63f1d3cdb2d7b83c4010c60ba14db84d17/original.png",
|
478
|
-
"national": false,
|
479
|
-
"active_location_count": 1,
|
480
|
-
"active_offer_count": 1,
|
481
|
-
"store_categories": [
|
482
|
-
{
|
483
|
-
"category_name": "Fun Centers",
|
484
|
-
"category_key": 1013,
|
485
|
-
"category_parent_key": 59,
|
486
|
-
"category_parent_name": "Entertainment & Recreation",
|
487
|
-
"category_type": "subcategory"
|
488
|
-
}
|
489
|
-
],
|
490
|
-
"links": {
|
491
|
-
"find_offers_for_this_store": "https://offer-demo.adcrws.com/v1/offers?store_key=30368039",
|
492
|
-
"find_locations_for_this_store": "https://offer-demo.adcrws.com/v1/locations?store_key=30368039"
|
493
|
-
}
|
494
|
-
}
|
495
|
-
]
|
496
|
-
}
|
497
|
-
http_version:
|
498
|
-
recorded_at: Thu, 27 Aug 2015 20:17:38 GMT
|
499
3
|
- request:
|
500
4
|
method: get
|
501
5
|
uri: https://offer-demo.adcrws.com/v1/stores/19016615?member_key=API_RUBY_GEM_TEST
|
@@ -504,7 +8,7 @@ http_interactions:
|
|
504
8
|
string: ''
|
505
9
|
headers:
|
506
10
|
Access-Token:
|
507
|
-
-
|
11
|
+
- token_without_filters
|
508
12
|
Content-Type:
|
509
13
|
- application/json
|
510
14
|
Accept:
|
@@ -527,7 +31,7 @@ http_interactions:
|
|
527
31
|
Content-Type:
|
528
32
|
- application/json
|
529
33
|
Date:
|
530
|
-
-
|
34
|
+
- Wed, 16 Sep 2015 19:54:00 GMT
|
531
35
|
Etag:
|
532
36
|
- '"111a49e6ac3ee7f9c1b0ce782cd4a814"'
|
533
37
|
Server:
|
@@ -536,10 +40,14 @@ http_interactions:
|
|
536
40
|
- nosniff
|
537
41
|
X-Frame-Options:
|
538
42
|
- SAMEORIGIN
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '1000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '977'
|
539
47
|
X-Request-Id:
|
540
|
-
-
|
48
|
+
- 989b5b3c-4004-4026-a4fb-bc50f4273ec2
|
541
49
|
X-Runtime:
|
542
|
-
- '0.
|
50
|
+
- '0.017239'
|
543
51
|
X-Xss-Protection:
|
544
52
|
- 1; mode=block
|
545
53
|
Content-Length:
|
@@ -576,5 +84,5 @@ http_interactions:
|
|
576
84
|
]
|
577
85
|
}
|
578
86
|
http_version:
|
579
|
-
recorded_at:
|
87
|
+
recorded_at: Wed, 16 Sep 2015 19:54:00 GMT
|
580
88
|
recorded_with: VCR 2.9.3
|