--- http_interactions: - request: method: get uri: https://token-demo.adcrws.com/v1/filter body: encoding: UTF-8 string: '{"program_filter": {"offers": [{"or":[{"terms":{"categories.category_key":[ 39, 1007, 1008, 1009, 1010, 1011, 1012 ] } }, {"terms":{"categories.category_parent_key":[ 39, 1007, 1008, 1009, 1010, 1011, 1012]} } ]}, {"not": {"or": [{"terms":{"categories.category_key":[ 1007 ] } }, {"terms":{"categories.category_parent_key":[ 1007 ] } } ] } } ] } }' headers: Access-Token: - token_without_limit Content-Type: - application/json Accept: - application/json response: status: code: 200 message: OK headers: Access-Control-Allow-Headers: - Origin, X-Requested-With, Content-Type, Accept, Authorization, Access-Token Access-Control-Allow-Methods: - POST, GET, PUT, DELETE, OPTIONS Access-Control-Max-Age: - '1728000' Access-Control-Request-Method: - GET Cache-Control: - max-age=0, private, must-revalidate Content-Type: - application/json Date: - Fri, 11 Sep 2015 20:33:20 GMT Etag: - '"50ad65b96243debff98324e9ecb617e1"' Server: - nginx/1.6.2 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - e076d442-7204-4caa-a333-4a332456e4ee X-Runtime: - '0.085977' X-Xss-Protection: - 1; mode=block Content-Length: - '5997' Connection: - keep-alive body: encoding: UTF-8 string: |- { "offers": { "offer_count": 74275, "categories": [ { "category_name": "Dining & Food", "category_key": 39, "category_type": "category", "offer_count": 74275, "subcategories": [ { "category_name": "Fast Food", "category_key": 1008, "category_type": "subcategory", "category_parent_key": 39, "offer_count": 39088 }, { "category_name": "Casual & Fine Dining", "category_key": 1009, "category_type": "subcategory", "category_parent_key": 39, "offer_count": 33187 }, { "category_name": "Convenience Stores", "category_key": 1012, "category_type": "subcategory", "category_parent_key": 39, "offer_count": 1956 }, { "category_name": "Specialty Foods & Gifts", "category_key": 1010, "category_type": "subcategory", "category_parent_key": 39, "offer_count": 337 }, { "category_name": "Catering", "category_key": 1011, "category_type": "subcategory", "category_parent_key": 39, "offer_count": 35 } ] }, { "category_name": "Health & Beauty", "category_key": 53, "category_type": "category", "offer_count": 34, "subcategories": [ { "category_name": "Salon", "category_key": 1036, "category_type": "subcategory", "category_parent_key": 53, "offer_count": 34 } ] }, { "category_name": "Entertainment & Recreation", "category_key": 59, "category_type": "category", "offer_count": 29, "subcategories": [ { "category_name": "Fun Centers", "category_key": 1013, "category_type": "subcategory", "category_parent_key": 59, "offer_count": 15 }, { "category_name": "Outdoor Adventure", "category_key": 1016, "category_type": "subcategory", "category_parent_key": 59, "offer_count": 4 }, { "category_name": "Concerts & Events", "category_key": 1014, "category_type": "subcategory", "category_parent_key": 59, "offer_count": 2 }, { "category_name": "Sporting Events", "category_key": 1017, "category_type": "subcategory", "category_parent_key": 59, "offer_count": 1 }, { "category_name": "Amusement Parks", "category_key": 1018, "category_type": "subcategory", "category_parent_key": 59, "offer_count": 1 }, { "category_name": "Classes", "category_key": 1019, "category_type": "subcategory", "category_parent_key": 59, "offer_count": 1 } ] }, { "category_name": "Automotive", "category_key": 51, "category_type": "category", "offer_count": 12, "subcategories": [ { "category_name": "Gas Station", "category_key": 1004, "category_type": "subcategory", "category_parent_key": 51, "offer_count": 11 }, { "category_name": "Auto Body & Paint", "category_key": 1000, "category_type": "subcategory", "category_parent_key": 51, "offer_count": 1 } ] }, { "category_name": "Golf", "category_key": 48, "category_type": "category", "offer_count": 8, "subcategories": [ { "category_name": "Golf Courses", "category_key": 1020, "category_type": "subcategory", "category_parent_key": 48, "offer_count": 8 } ] }, { "category_name": "Shopping", "category_key": 45, "category_type": "category", "offer_count": 3, "subcategories": [ { "category_name": "Crafts", "category_key": 1083, "category_type": "subcategory", "category_parent_key": 45, "offer_count": 1 }, { "category_name": "Department Stores", "category_key": 1085, "category_type": "subcategory", "category_parent_key": 45, "offer_count": 1 }, { "category_name": "Pets", "category_key": 1097, "category_type": "subcategory", "category_parent_key": 45, "offer_count": 1 } ] }, { "category_name": "Services", "category_key": 50, "category_type": "category", "offer_count": 1, "subcategories": [ ] }, { "category_name": "Cruise", "category_key": 60, "category_type": "category", "offer_count": 1, "subcategories": [ ] } ], "redemption_methods": [ { "redemption_method": "instore_print", "offer_count": 53662 }, { "redemption_method": "instore", "offer_count": 28674 }, { "redemption_method": "link", "offer_count": 20720 }, { "redemption_method": "call", "offer_count": 25 } ] }, "categories": { "category_count": 127 }, "stores": { "store_count": 25922 }, "locations": { "location_count": 204820 } } http_version: recorded_at: Fri, 11 Sep 2015 20:33:20 GMT recorded_with: VCR 2.9.3