--- http_interactions: - request: method: get uri: https://offer-demo.adcrws.com/v1/stores 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:04 GMT Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Request-Id: - b6abf83a-99cc-41ea-9f71-964fc3848b23 X-Runtime: - '0.000267' 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:04 GMT - request: method: get uri: https://offer-demo.adcrws.com/v1/stores?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:05 GMT Etag: - '"bc08b519982f4f9794d854e0f6ca9a67"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - 0f8aa96a-3735-48e5-9ea6-1d06e9884b15 X-Runtime: - '0.017632' X-Xss-Protection: - 1; mode=block Content-Length: - '1452' Connection: - keep-alive body: encoding: ASCII-8BIT string: !binary |- ewogICJpbmZvIjogewogICAgInRvdGFsX3Jlc3VsdHMiOiAyNTQyNCwKICAg ICJjdXJyZW50X3BhZ2UiOiAxLAogICAgInRvdGFsX3BhZ2VzIjogMjU0MjQs CiAgICAicmVzdWx0c19wZXJfcGFnZSI6IDEKICB9LAogICJzdG9yZXMiOiBb C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dvcnlf cGFyZW50X25hbWUiOiBudWxsLAogICAgICAgICAgImNhdGVnb3J5X3R5cGUi OiAiY2F0ZWdvcnkiCiAgICAgICAgfQogICAgICBdLAogICAgICAibGlua3Mi OiB7CiAgICAgICAgInNob3dfc3RvcmUiOiAiaHR0cHM6Ly9vZmZlci1kZW1v LmFkY3J3cy5jb20vdjEvc3RvcmVzLzIxOTU1ODgzNSIsCiAgICAgICAgImZp bmRfb2ZmZXJzX2Zvcl90aGlzX3N0b3JlIjogImh0dHBzOi8vb2ZmZXItZGVt by5hZGNyd3MuY29tL3YxL29mZmVycz9zdG9yZV9rZXk9MjE5NTU4ODM1IiwK ICAgICAgICAiZmluZF9sb2NhdGlvbnNfZm9yX3RoaXNfc3RvcmUiOiAiaHR0 cHM6Ly9vZmZlci1kZW1vLmFkY3J3cy5jb20vdjEvbG9jYXRpb25zP3N0b3Jl X2tleT0yMTk1NTg4MzUiCiAgICAgIH0KICAgIH0KICBdLAogICJsaW5rcyI6 IHsKICAgICJuZXh0X3BhZ2UiOiAiaHR0cHM6Ly9vZmZlci1kZW1vLmFkY3J3 cy5jb20vdjEvc3RvcmVzP21lbWJlcl9rZXk9Z3Vlc3QmcGFnZT0yJnBlcl9w YWdlPTEiCiAgfQp9 http_version: recorded_at: Thu, 06 Aug 2015 17:51:05 GMT - request: method: get uri: https://offer-demo.adcrws.com/v1/stores?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: - Thu, 27 Aug 2015 20:17:38 GMT Etag: - '"e4d04ff52c7c8cb3069b350e816c65f5"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - aaff2662-b9c8-45d8-b59a-26d801ab4315 X-Runtime: - '0.020077' X-Xss-Protection: - 1; mode=block Content-Length: - '1360' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 25435, "current_page": 1, "total_pages": 25435, "results_per_page": 1 }, "stores": [ { "search_relevance": 1.0, "store_key": 30368039, "name": "Country Club Bowl", "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.", "logo_url": "https://static-demo.accessdevelopment.com/brand/09643f63f1d3cdb2d7b83c4010c60ba14db84d17/original.png", "national": false, "active_location_count": 1, "active_offer_count": 1, "store_categories": [ { "category_name": "Fun Centers", "category_key": 1013, "category_parent_key": 59, "category_parent_name": "Entertainment & Recreation", "category_type": "subcategory" } ], "links": { "show_store": "https://offer-demo.adcrws.com/v1/stores/30368039", "find_offers_for_this_store": "https://offer-demo.adcrws.com/v1/offers?store_key=30368039", "find_locations_for_this_store": "https://offer-demo.adcrws.com/v1/locations?store_key=30368039" } } ], "links": { "next_page": "https://offer-demo.adcrws.com/v1/stores?member_key=API_RUBY_GEM_TEST&page=2&per_page=1" } } http_version: recorded_at: Thu, 27 Aug 2015 20:17:39 GMT recorded_with: VCR 2.9.3