access 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/access/error.rb +2 -0
- data/lib/access/request.rb +4 -1
- data/lib/access/response.rb +2 -0
- data/lib/access/version.rb +1 -1
- data/test/fixtures/autocomplete_search.yml +19 -18
- data/test/fixtures/autocomplete_search_categories.yml +10 -10
- data/test/fixtures/autocomplete_search_locations.yml +4 -4
- data/test/fixtures/autocomplete_search_offers.yml +9 -9
- data/test/fixtures/autocomplete_search_stores.yml +11 -11
- data/test/fixtures/category_find.yml +4 -4
- data/test/fixtures/category_search.yml +8 -8
- data/test/fixtures/category_search_fail_member_key.yml +4 -4
- data/test/fixtures/filter_find.yml +67 -0
- data/test/fixtures/filter_search.yml +12 -12
- data/test/fixtures/location_find.yml +432 -388
- data/test/fixtures/location_search.yml +34 -34
- data/test/fixtures/location_search_fail_member_key.yml +4 -4
- data/test/fixtures/national_stores.yml +4 -4
- data/test/fixtures/oauth_application_find.yml +4 -4
- data/test/fixtures/oauth_application_search.yml +7 -7
- data/test/fixtures/oauth_application_token_find.yml +4 -4
- data/test/fixtures/oauth_application_token_search.yml +4 -4
- data/test/fixtures/offer_find.yml +125 -119
- data/test/fixtures/offer_search.yml +68 -66
- data/test/fixtures/offer_search_fail_member_key.yml +4 -4
- data/test/fixtures/redeem_offer_no_redeem_type.yml +18 -18
- data/test/fixtures/store_find.yml +166 -0
- data/test/fixtures/store_search.yml +19 -19
- data/test/fixtures/store_search_fail_member_key.yml +6 -6
- data/test/fixtures/subcategory_find.yml +4 -4
- data/test/fixtures/token_find.yml +90 -0
- data/test/fixtures/token_search.yml +29 -31
- data/test/fixtures/verify_filter.yml +15 -15
- data/test/fixtures/verify_token.yml +12 -12
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e952f58d6ae4081589a832623bbff858f569786b
|
4
|
+
data.tar.gz: 7ae0b4d8521b4d305efbfb12b778589a9d65991f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29bb3ba82af591b2971a859b2473c7e089baf35258649189ea3778a3652037ea81230b95074492bdd34c3d48f3c32c0bdc42d16c80e0d134e4eac9bb373de408
|
7
|
+
data.tar.gz: eb0546f01e202eb4d623cf7e3a936ca6002c3255d61d8be634c63eb15f2a8a691b0cf8647215eaed40468f366dcaa5572729344b966ea32674a805aff561c900
|
data/lib/access/error.rb
CHANGED
@@ -3,6 +3,7 @@ module Access
|
|
3
3
|
class AuthenticationError < StandardError; end
|
4
4
|
class NoAccessToken < AuthenticationError; end
|
5
5
|
class InvalidResponseFormat < TypeError; end
|
6
|
+
class Timeout < Timeout::Error ; end
|
6
7
|
|
7
8
|
attr_reader :message, :status_code, :status
|
8
9
|
|
@@ -12,5 +13,6 @@ module Access
|
|
12
13
|
@message = response_message
|
13
14
|
end
|
14
15
|
end
|
16
|
+
|
15
17
|
end
|
16
18
|
|
data/lib/access/request.rb
CHANGED
@@ -4,12 +4,15 @@ module Access
|
|
4
4
|
|
5
5
|
def get(path, api_type, options={}, &block)
|
6
6
|
url = set_base(api_type, path)
|
7
|
-
results = self.class.get(url, headers: headers(options[:access_token]), query: options)
|
7
|
+
results = self.class.get(url, headers: headers(options[:access_token]), query: options, timeout: (options[:access_timeout] || 3))
|
8
8
|
if should_return_json?(options[:return_json])
|
9
9
|
hashify_results?(options[:hashify]) ? results.hashify : results
|
10
10
|
else
|
11
11
|
block.call results
|
12
12
|
end
|
13
|
+
rescue Net::ReadTimeout, Net::OpenTimeout
|
14
|
+
# block.call({"message"=>"Request Timeout Error", "status"=>408})
|
15
|
+
raise Access::Error::Timeout
|
13
16
|
end
|
14
17
|
|
15
18
|
def get_for_filter(path, api_type, filter, options={}, &block)
|
data/lib/access/response.rb
CHANGED
@@ -4,7 +4,9 @@ module Access
|
|
4
4
|
attr_accessor :info, :offers, :stores, :locations, :categories, :suggestions, :oauth_applications, :access_tokens, :oauth_tokens, :oauth_token, :verify, :reports, :members, :filters, :links, :dev_node, :message, :status, :success, :error, :response_status, :content_type, :redemption_method, :details, :oauth_access_token, :api_calls_over_time, :total_api_calls, :time_period, :interval, :report_env
|
5
5
|
|
6
6
|
def initialize(response)
|
7
|
+
# puts response
|
7
8
|
response.each { |key, value| instance_variable_set("@#{key}", value) if self.class.instance_methods.include? key.to_sym }
|
9
|
+
# puts response.message
|
8
10
|
@response_status = response.message
|
9
11
|
@status ||= response.code
|
10
12
|
check_success(response)
|
data/lib/access/version.rb
CHANGED
@@ -153,9 +153,9 @@ http_interactions:
|
|
153
153
|
Content-Type:
|
154
154
|
- application/json
|
155
155
|
Date:
|
156
|
-
-
|
156
|
+
- Thu, 27 Aug 2015 20:17:33 GMT
|
157
157
|
Etag:
|
158
|
-
- '"
|
158
|
+
- '"b6189cc5d738d9922ebb4b9fb929d8e2"'
|
159
159
|
Server:
|
160
160
|
- nginx/1.6.2
|
161
161
|
Strict-Transport-Security:
|
@@ -165,13 +165,13 @@ http_interactions:
|
|
165
165
|
X-Frame-Options:
|
166
166
|
- SAMEORIGIN
|
167
167
|
X-Request-Id:
|
168
|
-
-
|
168
|
+
- fdb7aeaa-a830-4c08-bb08-582bdf94f75b
|
169
169
|
X-Runtime:
|
170
|
-
- '0.
|
170
|
+
- '0.047313'
|
171
171
|
X-Xss-Protection:
|
172
172
|
- 1; mode=block
|
173
173
|
Content-Length:
|
174
|
-
- '
|
174
|
+
- '1141'
|
175
175
|
Connection:
|
176
176
|
- keep-alive
|
177
177
|
body:
|
@@ -183,12 +183,12 @@ http_interactions:
|
|
183
183
|
MDksCiAgICAgICAgImxvZ29fdXJsIjogImh0dHBzOi8vc3RhdGljLWRlbW8u
|
184
184
|
YWNjZXNzZGV2ZWxvcG1lbnQuY29tL2ljb25zL3RyYXZlbC5wbmciCiAgICAg
|
185
185
|
IH0KICAgIF0sCiAgICAic3RvcmVzIjogWwogICAgICB7CiAgICAgICAgInN0
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
186
|
+
b3JlX25hbWUiOiAiTGliZXJ0eSBUYXggU2VydmljZSIsCiAgICAgICAgInN0
|
187
|
+
b3JlX2tleSI6IDE4OTM4Nzk5LAogICAgICAgICJhY3RpdmVfb2ZmZXJfY291
|
188
|
+
bnQiOiAzNzE5LAogICAgICAgICJhY3RpdmVfbG9jYXRpb25fY291bnQiOiAz
|
189
|
+
NzI2LAogICAgICAgICJsb2dvX3VybCI6ICJodHRwczovL3N0YXRpYy1kZW1v
|
190
|
+
LmFjY2Vzc2RldmVsb3BtZW50LmNvbS9icmFuZC9iMmMyNjY5MGQ1ZmVkNzVl
|
191
|
+
MzYxYjEyNmZjYzEwNDM1YjAyOTRjMzhkL29yaWdpbmFsLnBuZyIKICAgICAg
|
192
192
|
fQogICAgXSwKICAgICJsb2NhdGlvbnMiOiBbCiAgICAgIHsKICAgICAgICAi
|
193
193
|
bG9jYXRpb25fbmFtZSI6ICJXYWx0IERpc25leSBXb3JsZMKuIFRpY2tldHMi
|
194
194
|
LAogICAgICAgICJsb2NhdGlvbl9rZXkiOiA1MjE3NjE1LAogICAgICAgICJh
|
@@ -196,12 +196,13 @@ http_interactions:
|
|
196
196
|
aHR0cHM6Ly9zdGF0aWMtZGVtby5hY2Nlc3NkZXZlbG9wbWVudC5jb20vYnJh
|
197
197
|
bmQvNDI5ZWM2ZDE3OTk1YzMxYzExNzNiZjQ0OTNkNThmMzQ1MDA1N2Q4Yi9v
|
198
198
|
cmlnaW5hbC5wbmciCiAgICAgIH0KICAgIF0sCiAgICAib2ZmZXJzIjogWwog
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
199
|
+
ICAgICB7CiAgICAgICAgIm9mZmVyX25hbWUiOiAiJDEwIGRpc2NvdW50IG9m
|
200
|
+
ZiBzdGFuZGFyZCByb29tIHJhdGVzIGFuZCAzcmQgYW5kIDR0aCBwZXJzb25z
|
201
|
+
IGluIHJvb20gc3RheSBmcmVlISIsCiAgICAgICAgIm9mZmVyX2tleSI6IDEy
|
202
|
+
NDE4ODgyLAogICAgICAgICJsb2dvX3VybCI6ICJodHRwczovL3N0YXRpYy1k
|
203
|
+
ZW1vLmFjY2Vzc2RldmVsb3BtZW50LmNvbS9icmFuZC80YWNhMDI1MWU4MDY2
|
204
|
+
ZjkzZDE0NGI2OWM2YzZlN2UwNmEzYTFhZDA4L29yaWdpbmFsLnBuZyIKICAg
|
205
|
+
ICAgfQogICAgXQogIH0KfQ==
|
205
206
|
http_version:
|
206
|
-
recorded_at:
|
207
|
+
recorded_at: Thu, 27 Aug 2015 20:17:34 GMT
|
207
208
|
recorded_with: VCR 2.9.3
|
@@ -140,9 +140,9 @@ http_interactions:
|
|
140
140
|
Content-Type:
|
141
141
|
- application/json
|
142
142
|
Date:
|
143
|
-
-
|
143
|
+
- Thu, 27 Aug 2015 20:17:33 GMT
|
144
144
|
Etag:
|
145
|
-
- '"
|
145
|
+
- '"0278fae8fe3100e682489033c340d4a2"'
|
146
146
|
Server:
|
147
147
|
- nginx/1.6.2
|
148
148
|
Strict-Transport-Security:
|
@@ -152,13 +152,13 @@ http_interactions:
|
|
152
152
|
X-Frame-Options:
|
153
153
|
- SAMEORIGIN
|
154
154
|
X-Request-Id:
|
155
|
-
-
|
155
|
+
- eafcb7ec-7354-46e1-bd6b-ef449541ca9b
|
156
156
|
X-Runtime:
|
157
|
-
- '0.
|
157
|
+
- '0.016928'
|
158
158
|
X-Xss-Protection:
|
159
159
|
- 1; mode=block
|
160
|
-
|
161
|
-
-
|
160
|
+
Transfer-Encoding:
|
161
|
+
- chunked
|
162
162
|
Connection:
|
163
163
|
- keep-alive
|
164
164
|
body:
|
@@ -169,13 +169,13 @@ http_interactions:
|
|
169
169
|
"query": "*",
|
170
170
|
"categories": [
|
171
171
|
{
|
172
|
-
"category_name": "
|
173
|
-
"category_key":
|
174
|
-
"logo_url": "https://static-demo.accessdevelopment.com/icons/
|
172
|
+
"category_name": "Apparel & Accessories",
|
173
|
+
"category_key": 1077,
|
174
|
+
"logo_url": "https://static-demo.accessdevelopment.com/icons/shopping.png"
|
175
175
|
}
|
176
176
|
]
|
177
177
|
}
|
178
178
|
}
|
179
179
|
http_version:
|
180
|
-
recorded_at:
|
180
|
+
recorded_at: Thu, 27 Aug 2015 20:17:34 GMT
|
181
181
|
recorded_with: VCR 2.9.3
|
@@ -136,7 +136,7 @@ http_interactions:
|
|
136
136
|
Content-Type:
|
137
137
|
- application/json
|
138
138
|
Date:
|
139
|
-
-
|
139
|
+
- Thu, 27 Aug 2015 20:17:34 GMT
|
140
140
|
Etag:
|
141
141
|
- '"31ddb1bb29169320aef8492c5d01fc3b"'
|
142
142
|
Server:
|
@@ -148,9 +148,9 @@ http_interactions:
|
|
148
148
|
X-Frame-Options:
|
149
149
|
- SAMEORIGIN
|
150
150
|
X-Request-Id:
|
151
|
-
-
|
151
|
+
- 86e94c9d-b8a6-48d1-8cf4-7d3c69368a10
|
152
152
|
X-Runtime:
|
153
|
-
- '0.
|
153
|
+
- '0.025335'
|
154
154
|
X-Xss-Protection:
|
155
155
|
- 1; mode=block
|
156
156
|
Content-Length:
|
@@ -169,5 +169,5 @@ http_interactions:
|
|
169
169
|
YzMxYzExNzNiZjQ0OTNkNThmMzQ1MDA1N2Q4Yi9vcmlnaW5hbC5wbmciCiAg
|
170
170
|
ICAgIH0KICAgIF0KICB9Cn0=
|
171
171
|
http_version:
|
172
|
-
recorded_at:
|
172
|
+
recorded_at: Thu, 27 Aug 2015 20:17:34 GMT
|
173
173
|
recorded_with: VCR 2.9.3
|
@@ -140,9 +140,9 @@ http_interactions:
|
|
140
140
|
Content-Type:
|
141
141
|
- application/json
|
142
142
|
Date:
|
143
|
-
-
|
143
|
+
- Thu, 27 Aug 2015 20:17:34 GMT
|
144
144
|
Etag:
|
145
|
-
- '"
|
145
|
+
- '"cd285d9aa1f37885c4301db0ab07697b"'
|
146
146
|
Server:
|
147
147
|
- nginx/1.6.2
|
148
148
|
Strict-Transport-Security:
|
@@ -152,13 +152,13 @@ http_interactions:
|
|
152
152
|
X-Frame-Options:
|
153
153
|
- SAMEORIGIN
|
154
154
|
X-Request-Id:
|
155
|
-
-
|
155
|
+
- c487c8d7-a060-4080-8b56-2fe00edd8f54
|
156
156
|
X-Runtime:
|
157
|
-
- '0.
|
157
|
+
- '0.056273'
|
158
158
|
X-Xss-Protection:
|
159
159
|
- 1; mode=block
|
160
160
|
Content-Length:
|
161
|
-
- '
|
161
|
+
- '299'
|
162
162
|
Connection:
|
163
163
|
- keep-alive
|
164
164
|
body:
|
@@ -169,13 +169,13 @@ http_interactions:
|
|
169
169
|
"query": "*",
|
170
170
|
"offers": [
|
171
171
|
{
|
172
|
-
"offer_name": "$10 off
|
173
|
-
"offer_key":
|
174
|
-
"logo_url": "https://static-demo.accessdevelopment.com/brand/
|
172
|
+
"offer_name": "$10 off any purchase of $50 or more.",
|
173
|
+
"offer_key": 13705132,
|
174
|
+
"logo_url": "https://static-demo.accessdevelopment.com/brand/f0d2728d00ef0d093136f3019e7cc2cde9630b56/original.png"
|
175
175
|
}
|
176
176
|
]
|
177
177
|
}
|
178
178
|
}
|
179
179
|
http_version:
|
180
|
-
recorded_at:
|
180
|
+
recorded_at: Thu, 27 Aug 2015 20:17:34 GMT
|
181
181
|
recorded_with: VCR 2.9.3
|
@@ -142,9 +142,9 @@ http_interactions:
|
|
142
142
|
Content-Type:
|
143
143
|
- application/json
|
144
144
|
Date:
|
145
|
-
-
|
145
|
+
- Thu, 27 Aug 2015 20:17:34 GMT
|
146
146
|
Etag:
|
147
|
-
- '"
|
147
|
+
- '"08956181a96a9f3bc89d47f5a54ddc94"'
|
148
148
|
Server:
|
149
149
|
- nginx/1.6.2
|
150
150
|
Strict-Transport-Security:
|
@@ -154,13 +154,13 @@ http_interactions:
|
|
154
154
|
X-Frame-Options:
|
155
155
|
- SAMEORIGIN
|
156
156
|
X-Request-Id:
|
157
|
-
-
|
157
|
+
- 6c7775b7-506b-4919-8956-b2f2a77c37f5
|
158
158
|
X-Runtime:
|
159
|
-
- '0.
|
159
|
+
- '0.018217'
|
160
160
|
X-Xss-Protection:
|
161
161
|
- 1; mode=block
|
162
162
|
Content-Length:
|
163
|
-
- '
|
163
|
+
- '362'
|
164
164
|
Connection:
|
165
165
|
- keep-alive
|
166
166
|
body:
|
@@ -171,15 +171,15 @@ http_interactions:
|
|
171
171
|
"query": "*",
|
172
172
|
"stores": [
|
173
173
|
{
|
174
|
-
"store_name": "
|
175
|
-
"store_key":
|
176
|
-
"active_offer_count":
|
177
|
-
"active_location_count":
|
178
|
-
"logo_url": "https://static-demo.accessdevelopment.com/brand/
|
174
|
+
"store_name": "Spafinder Wellness 365",
|
175
|
+
"store_key": 18939302,
|
176
|
+
"active_offer_count": 17165,
|
177
|
+
"active_location_count": 17165,
|
178
|
+
"logo_url": "https://static-demo.accessdevelopment.com/brand/6bbaa1000c933a5e91fa8f3113609e6c8ff19fdd/original.png"
|
179
179
|
}
|
180
180
|
]
|
181
181
|
}
|
182
182
|
}
|
183
183
|
http_version:
|
184
|
-
recorded_at:
|
184
|
+
recorded_at: Thu, 27 Aug 2015 20:17:35 GMT
|
185
185
|
recorded_with: VCR 2.9.3
|
@@ -181,7 +181,7 @@ http_interactions:
|
|
181
181
|
Content-Type:
|
182
182
|
- application/json
|
183
183
|
Date:
|
184
|
-
-
|
184
|
+
- Thu, 27 Aug 2015 20:17:39 GMT
|
185
185
|
Etag:
|
186
186
|
- '"9a1bf56f467a684bfa1d608b95924979"'
|
187
187
|
Server:
|
@@ -193,9 +193,9 @@ http_interactions:
|
|
193
193
|
X-Frame-Options:
|
194
194
|
- SAMEORIGIN
|
195
195
|
X-Request-Id:
|
196
|
-
-
|
196
|
+
- 7d433d83-9ba8-4e9c-b4ea-91e03e8341d0
|
197
197
|
X-Runtime:
|
198
|
-
- '0.
|
198
|
+
- '0.015688'
|
199
199
|
X-Xss-Protection:
|
200
200
|
- 1; mode=block
|
201
201
|
Content-Length:
|
@@ -299,5 +299,5 @@ http_interactions:
|
|
299
299
|
]
|
300
300
|
}
|
301
301
|
http_version:
|
302
|
-
recorded_at:
|
302
|
+
recorded_at: Thu, 27 Aug 2015 20:17:39 GMT
|
303
303
|
recorded_with: VCR 2.9.3
|
@@ -391,7 +391,7 @@ http_interactions:
|
|
391
391
|
Content-Type:
|
392
392
|
- application/json
|
393
393
|
Date:
|
394
|
-
-
|
394
|
+
- Thu, 27 Aug 2015 20:17:39 GMT
|
395
395
|
Etag:
|
396
396
|
- '"6aabadd453befa6a76c2350cfbc70034"'
|
397
397
|
Server:
|
@@ -403,9 +403,9 @@ http_interactions:
|
|
403
403
|
X-Frame-Options:
|
404
404
|
- SAMEORIGIN
|
405
405
|
X-Request-Id:
|
406
|
-
-
|
406
|
+
- c071c6e5-f1f8-40b6-bc8e-bb6b2d0ff7e6
|
407
407
|
X-Runtime:
|
408
|
-
- '0.
|
408
|
+
- '0.017373'
|
409
409
|
X-Xss-Protection:
|
410
410
|
- 1; mode=block
|
411
411
|
Content-Length:
|
@@ -519,7 +519,7 @@ http_interactions:
|
|
519
519
|
}
|
520
520
|
}
|
521
521
|
http_version:
|
522
|
-
recorded_at:
|
522
|
+
recorded_at: Thu, 27 Aug 2015 20:17:40 GMT
|
523
523
|
- request:
|
524
524
|
method: get
|
525
525
|
uri: https://offer-demo.adcrws.com/v1/categories?member_key=API_RUBY_GEM_TEST&per_page=1
|
@@ -551,7 +551,7 @@ http_interactions:
|
|
551
551
|
Content-Type:
|
552
552
|
- application/json
|
553
553
|
Date:
|
554
|
-
-
|
554
|
+
- Thu, 27 Aug 2015 20:17:40 GMT
|
555
555
|
Etag:
|
556
556
|
- '"6aabadd453befa6a76c2350cfbc70034"'
|
557
557
|
Server:
|
@@ -563,9 +563,9 @@ http_interactions:
|
|
563
563
|
X-Frame-Options:
|
564
564
|
- SAMEORIGIN
|
565
565
|
X-Request-Id:
|
566
|
-
-
|
566
|
+
- abe7443a-c7ea-4b94-b54b-a5eca4712df0
|
567
567
|
X-Runtime:
|
568
|
-
- '0.
|
568
|
+
- '0.017184'
|
569
569
|
X-Xss-Protection:
|
570
570
|
- 1; mode=block
|
571
571
|
Content-Length:
|
@@ -679,5 +679,5 @@ http_interactions:
|
|
679
679
|
}
|
680
680
|
}
|
681
681
|
http_version:
|
682
|
-
recorded_at:
|
682
|
+
recorded_at: Thu, 27 Aug 2015 20:17:41 GMT
|
683
683
|
recorded_with: VCR 2.9.3
|
@@ -71,7 +71,7 @@ http_interactions:
|
|
71
71
|
Content-Type:
|
72
72
|
- application/json
|
73
73
|
Date:
|
74
|
-
-
|
74
|
+
- Thu, 27 Aug 2015 20:17:40 GMT
|
75
75
|
Server:
|
76
76
|
- nginx/1.6.2
|
77
77
|
Strict-Transport-Security:
|
@@ -81,9 +81,9 @@ http_interactions:
|
|
81
81
|
X-Frame-Options:
|
82
82
|
- SAMEORIGIN
|
83
83
|
X-Request-Id:
|
84
|
-
-
|
84
|
+
- 4fa88aad-47cd-4a24-8143-faeb51b8646f
|
85
85
|
X-Runtime:
|
86
|
-
- '0.
|
86
|
+
- '0.009070'
|
87
87
|
X-Xss-Protection:
|
88
88
|
- 1; mode=block
|
89
89
|
Content-Length:
|
@@ -98,5 +98,5 @@ http_interactions:
|
|
98
98
|
"status": 401
|
99
99
|
}
|
100
100
|
http_version:
|
101
|
-
recorded_at:
|
101
|
+
recorded_at: Thu, 27 Aug 2015 20:17:41 GMT
|
102
102
|
recorded_with: VCR 2.9.3
|
@@ -67,4 +67,71 @@ http_interactions:
|
|
67
67
|
}
|
68
68
|
http_version:
|
69
69
|
recorded_at: Wed, 12 Aug 2015 17:46:37 GMT
|
70
|
+
- request:
|
71
|
+
method: get
|
72
|
+
uri: https://token-demo.adcrws.com/v1/filters/76
|
73
|
+
body:
|
74
|
+
encoding: US-ASCII
|
75
|
+
string: ''
|
76
|
+
headers:
|
77
|
+
Access-Token:
|
78
|
+
- token_without_limit
|
79
|
+
Content-Type:
|
80
|
+
- application/json
|
81
|
+
Accept:
|
82
|
+
- application/json
|
83
|
+
response:
|
84
|
+
status:
|
85
|
+
code: 200
|
86
|
+
message: OK
|
87
|
+
headers:
|
88
|
+
Access-Control-Allow-Headers:
|
89
|
+
- Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token
|
90
|
+
Access-Control-Allow-Methods:
|
91
|
+
- POST, GET, PUT, DELETE, OPTIONS
|
92
|
+
Access-Control-Max-Age:
|
93
|
+
- '1728000'
|
94
|
+
Access-Control-Request-Method:
|
95
|
+
- GET
|
96
|
+
Cache-Control:
|
97
|
+
- max-age=0, private, must-revalidate
|
98
|
+
Content-Type:
|
99
|
+
- application/json
|
100
|
+
Date:
|
101
|
+
- Thu, 27 Aug 2015 20:17:45 GMT
|
102
|
+
Etag:
|
103
|
+
- '"05d51a876492777cfcf121bf363350ff"'
|
104
|
+
Server:
|
105
|
+
- nginx/1.6.2
|
106
|
+
Strict-Transport-Security:
|
107
|
+
- max-age=31536000
|
108
|
+
X-Content-Type-Options:
|
109
|
+
- nosniff
|
110
|
+
X-Frame-Options:
|
111
|
+
- SAMEORIGIN
|
112
|
+
X-Request-Id:
|
113
|
+
- a33a7166-a1f4-4e14-9447-7e7abeb3af14
|
114
|
+
X-Runtime:
|
115
|
+
- '0.038357'
|
116
|
+
X-Xss-Protection:
|
117
|
+
- 1; mode=block
|
118
|
+
Content-Length:
|
119
|
+
- '1292'
|
120
|
+
Connection:
|
121
|
+
- keep-alive
|
122
|
+
body:
|
123
|
+
encoding: UTF-8
|
124
|
+
string: |-
|
125
|
+
{
|
126
|
+
"filters": [
|
127
|
+
{
|
128
|
+
"filter_id": 76,
|
129
|
+
"filter_name": "Dining, Entertainment, Shopping",
|
130
|
+
"program_count": 0,
|
131
|
+
"filter": "---\r\noffers:\r\n- or:\r\n - terms:\r\n categories.category_key:\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 45 # Shopping\r\n - terms:\r\n categories.category_parent_key:\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 45 # Shopping\r\ncategories:\r\n- or:\r\n - terms:\r\n category_key:\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 45 # Shopping\r\n - terms:\r\n category_parent_key:\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 45 # Shopping\r\nstores:\r\n- or:\r\n - terms:\r\n store_categories.category_key:\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 45 # Shopping\r\n - terms:\r\n store_categories.category_parent_key:\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 45 # Shopping\r\nlocations:\r\n- or:\r\n - terms:\r\n location_categories.category_key:\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 45 # Shopping\r\n - terms:\r\n location_categories.category_parent_key:\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 45 # Shopping"
|
132
|
+
}
|
133
|
+
]
|
134
|
+
}
|
135
|
+
http_version:
|
136
|
+
recorded_at: Thu, 27 Aug 2015 20:17:45 GMT
|
70
137
|
recorded_with: VCR 2.9.3
|