--- http_interactions: - request: method: get uri: https://token-demo.adcrws.com/v1/oauth_applications?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:53:59 GMT Etag: - '"f6696b8f4112edcc7bacb4359fb29c66"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - 150a6278-d1bf-4034-a086-25d9db00b456 X-Runtime: - '0.043797' X-Xss-Protection: - 1; mode=block Content-Length: - '778' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 701, "results_per_page": 1, "current_page": 1, "total_pages": 701 }, "oauth_applications": [ { "id": 22, "name": "American Grandparents Association", "owner_id": 235308134, "owner_type": "Program", "domain_urls": null, "scopes": [ "api", "docs" ], "active_tokens": [ "e4db3fb9a054e78807c431e837c49a59553c73204de91d404fe43d12c247f805" ], "filter": { "filter_id": 18, "filter_name": "Grandparents" }, "links": { "show_application": "https://token-demo.adcrws.com/v1/oauth_applications/22" } } ], "links": { "next_page": "https://report-demo.adcrws.com/v1/oauth_applications?page=2" } } http_version: recorded_at: Sat, 01 Aug 2015 03:53:59 GMT - request: method: get uri: https://offer-demo.adcrws.com/v1/locations 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:00 GMT Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Request-Id: - 2f7b5e02-a328-4a66-98f7-caa7d01cf93a X-Runtime: - '0.000309' 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:00 GMT - request: method: get uri: https://offer-demo.adcrws.com/v1/locations?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:01 GMT Etag: - '"77168502114dd12f33b7091d3e75fcf5"' Server: - nginx/1.6.2 Strict-Transport-Security: - max-age=31536000 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - 96e5baa2-6541-4de5-9291-14103d6f25bd X-Runtime: - '0.029239' X-Xss-Protection: - 1; mode=block Content-Length: - '1854' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 204900, "current_page": 1, "total_pages": 204900, "results_per_page": 1 }, "locations": [ { "search_relevance": 1.0, "physical_location": { "location_name": "Food Fast", "web_address": "http://cefcostores.com", "description": null, "location_key": 5230448, "phone_number": "903-586-5303", "postal_code": "75766", "country": "US", "street_address": "319 E Larissa St", "extended_street_address": "", "city_locality": "Jacksonville", "state_region": "TX", "geolocation_array": [ -95.27013, 31.96207 ], "geolocation": { "lat": 31.96207, "lon": -95.27013 } }, "location_store": { "name": "Food Fast", "description": "", "store_key": 152815598 }, "location_categories": [ { "category_name": "Convenience Stores", "category_key": 1012, "category_parent_key": 39, "category_parent_name": "Dining & Food", "category_type": "subcategory" } ], "national": false, "logo_url": "https://static-demo.accessdevelopment.com/brand/3193995e29c9aae6bd4d8eb272b8b25db6c08267/original.png", "location_photos": [ ], "active_offer_count": 1, "offer_groups": [ 4099134 ], "links": { "show_location": "https://offer-demo.adcrws.com/v1/locations/5230448", "show_store": "https://offer-demo.adcrws.com/v1/stores/152815598", "find_offers_at_this_location": "https://offer-demo.adcrws.com/v1/offers?location_key=5230448" } } ], "links": { "next_page": "https://offer-demo.adcrws.com/v1/locations?member_key=guest&page=2&per_page=1" } } http_version: recorded_at: Thu, 06 Aug 2015 17:51:01 GMT - request: method: get uri: https://offer-demo.adcrws.com/v1/locations?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: - Fri, 11 Sep 2015 20:33:23 GMT Etag: - '"b1c54f65bd9c8091ad92c676fef93579"' Server: - nginx/1.6.2 X-Content-Type-Options: - nosniff X-Frame-Options: - SAMEORIGIN X-Request-Id: - b6aee1b9-ee8c-4b47-8d76-6d8a8861dd4d X-Runtime: - '0.029030' X-Xss-Protection: - 1; mode=block Content-Length: - '2102' Connection: - keep-alive body: encoding: UTF-8 string: |- { "info": { "total_results": 204820, "current_page": 1, "total_pages": 204820, "results_per_page": 1 }, "locations": [ { "search_relevance": 1.0, "physical_location": { "location_name": "TGF Hair Salon", "web_address": "http://www.tgfhairsalons.com", "description": "", "location_key": 294942, "phone_number": "281-398-6000", "postal_code": "77450", "country": "US", "street_address": "22072 Whiemer Pkwy", "extended_street_address": null, "city_locality": "Katy", "state_region": "TX", "geolocation_array": [ -95.74558, 29.7625 ], "geolocation": { "lat": 29.7625, "lon": -95.74558 } }, "location_store": { "name": "TGF Hair Salon", "description": "We are a full-service salon offering affordable prices. Our talented stylists offer fast, friendly service and in-depth knowledge about a wide variety of professional haircare products. We've got everything you need to keep looking your best.", "store_key": 18990943 }, "location_categories": [ { "category_name": "Salon", "category_key": 1036, "category_parent_key": 53, "category_parent_name": "Health & Beauty", "category_type": "subcategory" } ], "national": false, "logo_url": "https://static-demo.accessdevelopment.com/brand/d85c57bdbf8a840747a2aa1662e7f8f3edb52bf6/original.png", "location_photos": [ ], "active_offer_count": 1, "offer_group_keys": [ 89664 ], "links": { "show_location": "https://offer-demo.adcrws.com/v1/locations/294942", "show_store": "https://offer-demo.adcrws.com/v1/stores/18990943", "find_offers_at_this_location": "https://offer-demo.adcrws.com/v1/offers?location_key=294942" } } ], "links": { "next_page": "https://offer-demo.adcrws.com/v1/locations?member_key=API_RUBY_GEM_TEST&page=2&per_page=1" } } http_version: recorded_at: Fri, 11 Sep 2015 20:33:23 GMT recorded_with: VCR 2.9.3