--- http_interactions: - request: method: get uri: https://offer-demo.adcrws.com/v1/categories body: encoding: UTF-8 string: member_key=guest&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:03 GMT Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Request-Id: - 4e467354-c922-49bd-bc70-33cd41e6276d X-Runtime: - '0.000287' Content-Length: - '133' Connection: - keep-alive body: encoding: UTF-8 string: '{"status":400,"message":"There was a problem in the JSON you submitted: 795: unexpected token at ''member_key=guest\u0026per_page=1''"}' http_version: recorded_at: Thu, 06 Aug 2015 17:30:03 GMT - request: method: get uri: https://offer-demo.adcrws.com/v1/categories?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: - Thu, 06 Aug 2015 17:51:02 GMT Etag: - '"bfcd9d337e74a9f83509dc08b8d3566b"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - 4b5b3295-24af-4783-a00d-aa3d96799508 X-Runtime: - '0.016613' X-Xss-Protection: - 1; mode=block Content-Length: - '4040' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 16, "current_page": 1, "total_pages": 16, "results_per_page": 1 }, "categories": [ { "category_name": "Automotive", "category_key": 51, "category_type": "category", "category_parent_name": null, "category_parent_key": null, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=51" }, "subcategories": [ { "category_name": "Auto Body & Paint", "category_key": 1000, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1000", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1000" } }, { "category_name": "Auto Parts", "category_key": 1001, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1001", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1001" } }, { "category_name": "Auto Service & Repair", "category_key": 1002, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1002", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1002" } }, { "category_name": "Car Wash & Detail", "category_key": 1003, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1003", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1003" } }, { "category_name": "Gas Station", "category_key": 1004, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1004", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1004" } }, { "category_name": "Tires", "category_key": 1005, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1005", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1005" } }, { "category_name": "Auto Sales & Warranties", "category_key": 1006, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1006", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1006" } } ] } ], "links": { "next_page": "https://offer-demo.adcrws.com/v1/categories?member_key=guest&page=2&per_page=1" } } http_version: recorded_at: Thu, 06 Aug 2015 17:51:02 GMT - request: method: get uri: https://offer-demo.adcrws.com/v1/categories?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: - Thu, 06 Aug 2015 17:51:02 GMT Etag: - '"bfcd9d337e74a9f83509dc08b8d3566b"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - ab1fc13d-ce00-4c5f-bdf3-c9ccd3ac4d80 X-Runtime: - '0.017141' X-Xss-Protection: - 1; mode=block Content-Length: - '4040' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 16, "current_page": 1, "total_pages": 16, "results_per_page": 1 }, "categories": [ { "category_name": "Automotive", "category_key": 51, "category_type": "category", "category_parent_name": null, "category_parent_key": null, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=51" }, "subcategories": [ { "category_name": "Auto Body & Paint", "category_key": 1000, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1000", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1000" } }, { "category_name": "Auto Parts", "category_key": 1001, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1001", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1001" } }, { "category_name": "Auto Service & Repair", "category_key": 1002, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1002", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1002" } }, { "category_name": "Car Wash & Detail", "category_key": 1003, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1003", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1003" } }, { "category_name": "Gas Station", "category_key": 1004, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1004", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1004" } }, { "category_name": "Tires", "category_key": 1005, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1005", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1005" } }, { "category_name": "Auto Sales & Warranties", "category_key": 1006, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1006", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1006" } } ] } ], "links": { "next_page": "https://offer-demo.adcrws.com/v1/categories?member_key=guest&page=2&per_page=1" } } http_version: recorded_at: Thu, 06 Aug 2015 17:51:02 GMT - request: method: get uri: https://offer-demo.adcrws.com/v1/categories?member_key=API_RUBY_GEM_TEST&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: - Wed, 12 Aug 2015 17:46:34 GMT Etag: - '"6aabadd453befa6a76c2350cfbc70034"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - 897ef2db-aaf9-4bbb-ade7-1ac67608ee7a X-Runtime: - '0.015377' X-Xss-Protection: - 1; mode=block Content-Length: - '4052' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 16, "current_page": 1, "total_pages": 16, "results_per_page": 1 }, "categories": [ { "category_name": "Automotive", "category_key": 51, "category_type": "category", "category_parent_name": null, "category_parent_key": null, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=51" }, "subcategories": [ { "category_name": "Auto Body & Paint", "category_key": 1000, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1000", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1000" } }, { "category_name": "Auto Parts", "category_key": 1001, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1001", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1001" } }, { "category_name": "Auto Service & Repair", "category_key": 1002, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1002", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1002" } }, { "category_name": "Car Wash & Detail", "category_key": 1003, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1003", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1003" } }, { "category_name": "Gas Station", "category_key": 1004, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1004", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1004" } }, { "category_name": "Tires", "category_key": 1005, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1005", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1005" } }, { "category_name": "Auto Sales & Warranties", "category_key": 1006, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1006", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1006" } } ] } ], "links": { "next_page": "https://offer-demo.adcrws.com/v1/categories?member_key=API_RUBY_GEM_TEST&page=2&per_page=1" } } http_version: recorded_at: Wed, 12 Aug 2015 17:46:34 GMT - request: method: get uri: https://offer-demo.adcrws.com/v1/categories?member_key=API_RUBY_GEM_TEST&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: - Wed, 12 Aug 2015 17:46:35 GMT Etag: - '"6aabadd453befa6a76c2350cfbc70034"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - 181c5568-3f33-4770-a070-dc399f880013 X-Runtime: - '0.016198' X-Xss-Protection: - 1; mode=block Content-Length: - '4052' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 16, "current_page": 1, "total_pages": 16, "results_per_page": 1 }, "categories": [ { "category_name": "Automotive", "category_key": 51, "category_type": "category", "category_parent_name": null, "category_parent_key": null, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=51" }, "subcategories": [ { "category_name": "Auto Body & Paint", "category_key": 1000, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1000", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1000" } }, { "category_name": "Auto Parts", "category_key": 1001, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1001", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1001" } }, { "category_name": "Auto Service & Repair", "category_key": 1002, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1002", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1002" } }, { "category_name": "Car Wash & Detail", "category_key": 1003, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1003", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1003" } }, { "category_name": "Gas Station", "category_key": 1004, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1004", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1004" } }, { "category_name": "Tires", "category_key": 1005, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1005", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1005" } }, { "category_name": "Auto Sales & Warranties", "category_key": 1006, "category_type": "subcategory", "category_parent_key": 51, "links": { "show_category": "https://offer-demo.adcrws.com/v1/categories/1006", "show_parent_category": "https://offer-demo.adcrws.com/v1/categories/51", "find_offers_in_this_category": "https://offer-demo.adcrws.com/v1/offers?category_key=1006" } } ] } ], "links": { "next_page": "https://offer-demo.adcrws.com/v1/categories?member_key=API_RUBY_GEM_TEST&page=2&per_page=1" } } http_version: recorded_at: Wed, 12 Aug 2015 17:46:35 GMT recorded_with: VCR 2.9.3