--- http_interactions: - request: method: get uri: https://token-demo.adcrws.com/v1/filters?member_key=guest&per_page=1 body: encoding: US-ASCII string: '' 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: - Sat, 01 Aug 2015 03:22:13 GMT Etag: - '"de103d9997831de2f1f0ab51986e7fe6"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - f4b097d0-1000-4efe-874a-16e62380a4a9 X-Runtime: - '0.043647' X-Xss-Protection: - 1; mode=block Content-Length: - '2348' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 42, "results_per_page": 1, "current_page": 1, "total_pages": 42 }, "filters": [ { "filter_id": 71, "filter_name": "Auto, Dining, Entertainment, Health/Beauty, Hotel, Shopping, Travel", "program_count": 1, "filter": "---\r\noffers:\r\n- terms:\r\n offer_set:\r\n - 'DISCOUNT'\r\n- or:\r\n - terms:\r\n categories.category_key:\r\n - 51 # Auto\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 53 # Health & Beauty\r\n - 44 # Hotel\r\n - 45 # Shopping\r\n - 38 # Travel\r\n - terms:\r\n categories.category_parent_key:\r\n - 51 # Auto\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 53 # Health & Beauty\r\n - 44 # Hotel\r\n - 45 # Shopping\r\n - 38 # Travel\r\ncategories:\r\n- or:\r\n - terms:\r\n category_key:\r\n - 51 # Auto\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 53 # Health & Beauty\r\n - 44 # Hotel\r\n - 45 # Shopping\r\n - 38 # Travel\r\n - terms:\r\n category_parent_key:\r\n - 51 # Auto\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 53 # Health & Beauty\r\n - 44 # Hotel\r\n - 45 # Shopping\r\n - 38 # Travel\r\nstores:\r\n- or:\r\n - terms:\r\n store_categories.category_key:\r\n - 51 # Auto\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 53 # Health & Beauty\r\n - 44 # Hotel\r\n - 45 # Shopping\r\n - 38 # Travel\r\n - terms:\r\n store_categories.category_parent_key:\r\n - 51 # Auto\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 53 # Health & Beauty\r\n - 44 # Hotel\r\n - 45 # Shopping\r\n - 38 # Travel\r\n- or:\r\n - terms:\r\n location_categories.category_key:\r\n - 51 # Auto\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 53 # Health & Beauty\r\n - 44 # Hotel\r\n - 45 # Shopping\r\n - 38 # Travel\r\n - terms:\r\n location_categories.category_parent_key:\r\n - 51 # Auto\r\n - 39 # Dining\r\n - 59 # Entertainment\r\n - 53 # Health & Beauty\r\n - 44 # Hotel\r\n - 45 # Shopping\r\n - 38 # Travel" } ], "links": { "next_page": "https://report-demo.adcrws.com/v1/filters?page=2" } } http_version: recorded_at: Sat, 01 Aug 2015 03:22:13 GMT - request: method: get uri: https://token-demo.adcrws.com/v1/filters body: encoding: UTF-8 string: per_page=1 headers: Access-Token: - token_without_limit Content-Type: - application/json Accept: - application/json response: status: code: 400 message: Bad Request headers: Content-Type: - application/json Date: - Thu, 06 Aug 2015 17:30:01 GMT Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Request-Id: - 3fb00894-821d-4f5d-9a0f-33776ce325fb X-Runtime: - '0.000274' Content-Length: - '111' Connection: - keep-alive body: encoding: UTF-8 string: '{"status":400,"message":"There was a problem in the JSON you submitted: 795: unexpected token at ''per_page=1''"}' http_version: recorded_at: Thu, 06 Aug 2015 17:30:01 GMT - request: method: get uri: https://token-demo.adcrws.com/v1/filters?per_page=1 body: encoding: US-ASCII string: '' 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:09 GMT Etag: - '"3af89bbb2802cfa73a5208586542d437"' Server: - nginx/1.6.2 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - 34ec4509-1135-404e-bd0b-02094ec0175e X-Runtime: - '0.043192' X-Xss-Protection: - 1; mode=block Content-Length: - '1492' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 50, "results_per_page": 1, "current_page": 1, "total_pages": 50 }, "filters": [ { "filter_id": 76, "filter_name": "Dining, Entertainment, Shopping", "program_count": 0, "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" } ], "links": { "next_page": "https://report-demo.adcrws.com/v1/filters?page=2" } } http_version: recorded_at: Fri, 11 Sep 2015 20:33:09 GMT recorded_with: VCR 2.9.3