--- 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:36:46 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": 40378, "name": "new advertiser cdfcef58d553f963a909ac52cd1c7c7c", "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:37:40", "modify_date": "2015-04-24T18:37:40"}, {"id": 40379, "name": "new advertiser 08cd72d2adbdf42076113ed8d6daf563", "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:37:46", "modify_date": "2015-04-24T18:37:46"}]' http_version: recorded_at: Fri, 24 Apr 2015 22:37:49 GMT - request: method: delete uri: https://:@oiapi.com/v1/advertisers/40378/ 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:36:47 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:37:49 GMT - request: method: delete uri: https://:@oiapi.com/v1/advertisers/40379/ 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:36:47 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:37:49 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:36:47 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:37:50 GMT - request: method: post uri: https://:@oiapi.com/v1/advertisers/ body: encoding: UTF-8 string: '{"name":"new advertiser e22089f84f06e7e6b679abcfe68f0436","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:36:48 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": 40380}' http_version: recorded_at: Fri, 24 Apr 2015 22:37:50 GMT - request: method: post uri: https://:@oiapi.com/v1/offers/ body: encoding: UTF-8 string: '{"advertiser_id":40380,"name":"Special Product d81686bf2f524313c5c52d42429a171b","category_id":1010,"status_id":9,"headline":"Buy our product today 588dc310636f570513d9366517e55e20","body":"Try for FREE for a limited time only. This is your one-and-only chance! 5f6e2cce1e2dbc02bb2e405c78d3fe0c","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:36:48 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": 79797}' http_version: recorded_at: Fri, 24 Apr 2015 22:37:51 GMT - request: method: post uri: https://:@oiapi.com/v1/advertisers/ body: encoding: UTF-8 string: '{"name":"new advertiser e0dbc688dc3c64770dccfacaf2c5d4ab","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:36:49 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": 40381}' http_version: recorded_at: Fri, 24 Apr 2015 22:37:52 GMT - request: method: post uri: https://:@oiapi.com/v1/offers/ body: encoding: UTF-8 string: '{"advertiser_id":40381,"name":"Special Product 3750a45ad58983e417add0b389c570bd","category_id":1010,"status_id":9,"headline":"Buy our product today 4bd4b916ce49229459252567426145a0","body":"Try for FREE for a limited time only. This is your one-and-only chance! 6578a5d825ef082023601d7852f170b3","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:36:50 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": 79798}' http_version: recorded_at: Fri, 24 Apr 2015 22:37:53 GMT - request: method: post uri: https://:@oiapi.com/v1/offers/79797/datatransfers/ body: encoding: UTF-8 string: '{"name":"DT for Special Product 1 43c7ff07d970ba671d0cf7ee0d037982","status_id":1,"type":"http","offer_id":79798,"dt_info":{"base_url":"http://www.someclientbaseurl.com","method":"POST"},"data_fields":[{"email":"#{EM}"},{"first_name":"#{FN}"},{"last_name":"#{LN}"},{"zip":"#{PO}"},{"gender":"#{G}"}]}' 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:36:51 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", "id": 90079}' http_version: recorded_at: Fri, 24 Apr 2015 22:37:54 GMT recorded_with: VCR 2.9.3