--- http_interactions: - request: method: get uri: https://:@oiapi.com/v1/advertisers/ body: encoding: US-ASCII string: '' headers: Content-Type: - application/json User-Agent: - OiApiRuby Gem 0.1.1 response: status: code: 200 message: OK headers: Date: - Fri, 24 Apr 2015 22:37:55 GMT Server: - Apache/2.2.15 (CentOS) Vary: - Accept,Cookie X-Frame-Options: - SAMEORIGIN Allow: - GET, POST, HEAD, OPTIONS Connection: - close Transfer-Encoding: - chunked Content-Type: - application/json body: encoding: UTF-8 string: '[{"id": 40405, "name": "new advertiser 3eebbbe90bc24076917cecee45a3612e", "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:38:55", "modify_date": "2015-04-24T18:38:55"}]' http_version: recorded_at: Fri, 24 Apr 2015 22:38:57 GMT - request: method: delete uri: https://:@oiapi.com/v1/advertisers/40405/ body: encoding: US-ASCII string: '' headers: Content-Type: - application/json User-Agent: - OiApiRuby Gem 0.1.1 response: status: code: 200 message: OK headers: Date: - Fri, 24 Apr 2015 22:37:55 GMT Server: - Apache/2.2.15 (CentOS) Vary: - Accept,Cookie X-Frame-Options: - SAMEORIGIN Allow: - GET, PUT, DELETE, HEAD, OPTIONS Connection: - close Transfer-Encoding: - chunked Content-Type: - application/json body: encoding: UTF-8 string: '{"status": "Delete Successful", "message": "Advertiser Succesfully deleted"}' http_version: recorded_at: Fri, 24 Apr 2015 22:38:57 GMT - request: method: get uri: https://:@oiapi.com/v1/offers/ body: encoding: US-ASCII string: '' headers: Content-Type: - application/json User-Agent: - OiApiRuby Gem 0.1.1 response: status: code: 200 message: OK headers: Date: - Fri, 24 Apr 2015 22:37:55 GMT Server: - Apache/2.2.15 (CentOS) Vary: - Accept,Cookie X-Frame-Options: - SAMEORIGIN Allow: - GET, POST, HEAD, OPTIONS Connection: - close Transfer-Encoding: - chunked Content-Type: - application/json body: encoding: UTF-8 string: "[]" http_version: recorded_at: Fri, 24 Apr 2015 22:38:58 GMT - request: method: post uri: https://:@oiapi.com/v1/advertisers/ body: encoding: UTF-8 string: '{"name":"new advertiser 9179ed2edcad30b86c05103f79be08cc","status_id":1,"category_id":1010}' headers: Content-Type: - application/json User-Agent: - OiApiRuby Gem 0.1.1 response: status: code: 201 message: CREATED headers: Date: - Fri, 24 Apr 2015 22:37:56 GMT Server: - Apache/2.2.15 (CentOS) Vary: - Accept,Cookie X-Frame-Options: - SAMEORIGIN Allow: - GET, POST, HEAD, OPTIONS Connection: - close Transfer-Encoding: - chunked Content-Type: - application/json body: encoding: UTF-8 string: '{"status": "Create Successful", "message": "Advertiser successfully created", "id": 40406}' http_version: recorded_at: Fri, 24 Apr 2015 22:38:58 GMT - request: method: post uri: https://:@oiapi.com/v1/offers/ body: encoding: UTF-8 string: '{"advertiser_id":40406,"name":"Special Product a52470c1f49c29976f7c156805653014","category_id":1010,"status_id":9,"headline":"Buy our product today 20db71d4808b930e54ab25eb906eee26","body":"Try for FREE for a limited time only. This is your one-and-only chance! a3f9a6604f42dfe55407535a04687fd0","cpl_price":1.0,"global_cap":1000,"monthly_cap":300,"daily_cap":10,"image1":"http://www.opt-intelligence.com/images/cats120.png","image2":"http://www.opt-intelligence.com/images/cats88.png","data_points":["EM","FN"],"targeting":{"min_age":18,"max_age":45,"zip":{"include":true,"zip_codes":["14226","10009","10023","11211"]},"gender":"m","country":{"include":true,"countries":["USA"]},"third_party":{}},"comment":"Hello there"}' headers: Content-Type: - application/json User-Agent: - OiApiRuby Gem 0.1.1 response: status: code: 201 message: CREATED headers: Date: - Fri, 24 Apr 2015 22:37:56 GMT Server: - Apache/2.2.15 (CentOS) Vary: - Accept,Cookie X-Frame-Options: - SAMEORIGIN Allow: - GET, POST, HEAD, OPTIONS Connection: - close Transfer-Encoding: - chunked Content-Type: - application/json body: encoding: UTF-8 string: '{"status": "Request Successful", "message": "Offer successfully created", "id": 79820}' http_version: recorded_at: Fri, 24 Apr 2015 22:39:00 GMT - request: method: get uri: https://:@oiapi.com/v1/offers/79820/ body: encoding: US-ASCII string: '' headers: Content-Type: - application/json User-Agent: - OiApiRuby Gem 0.1.1 response: status: code: 200 message: OK headers: Date: - Fri, 24 Apr 2015 22:37:58 GMT Server: - Apache/2.2.15 (CentOS) Vary: - Accept,Cookie X-Frame-Options: - SAMEORIGIN Allow: - GET, PUT, HEAD, OPTIONS Connection: - close Transfer-Encoding: - chunked Content-Type: - application/json body: encoding: UTF-8 string: '{"id": 79820, "advertiser_id": 40406, "status_id": 9, "category_id": 1010, "name": "Special Product a52470c1f49c29976f7c156805653014", "headline": "Buy our product today 20db71d4808b930e54ab25eb906eee26", "body": "Try for FREE for a limited time only. This is your one-and-only chance! a3f9a6604f42dfe55407535a04687fd0", "unsubscribe_url": "http://opt-intelligence.com/ar/unsub/Optintelligence_Unsubscribe.html", "privacy_policy": "", "cpl_price": 1.0, "cap_status_id": 1101, "global_cap": 1000, "monthly_cap": 300, "daily_cap": 10, "create_date": "2015-04-24T18:38:59", "modify_date": "2015-04-24T18:38:59", "image1": "https://d1e25ii2es31lb.cloudfront.net/1429915077198-5c01120290aee417591826c73928d9a6.png", "image2": "https://d1e25ii2es31lb.cloudfront.net/1429915077579-5622db59fdb91911136a810e623a4e92.png", "data_points": ["EM", "FN"], "targeting": {"max_age": 45, "state": {"states": [], "include": true}, "zip": {"include": true, "zip_codes": ["14226", "10009", "10023", "11211"]}, "country": {"include": true, "countries": ["USA"]}, "zip_radius": null, "gender": "m", "third_party": {}, "min_age": 18}, "comment": "Hello there"}' http_version: recorded_at: Fri, 24 Apr 2015 22:39:00 GMT recorded_with: VCR 2.9.3