--- http_interactions: - request: method: get uri: https://<USERNAME>:<PASSWORD>@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:21 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": 40371, "name": "new advertiser 1457243b2b173cfe783e946e75eaab15", "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:37:19", "modify_date": "2015-04-24T18:37:19"}, {"id": 40372, "name": "new advertiser cfdce78ecff6d3053f75981a74128b2f", "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:37:21", "modify_date": "2015-04-24T18:37:21"}]' http_version: recorded_at: Fri, 24 Apr 2015 22:37:23 GMT - request: method: delete uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40371/ 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:21 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:24 GMT - request: method: delete uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40372/ 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:22 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:24 GMT - request: method: get uri: https://<USERNAME>:<PASSWORD>@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:22 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:24 GMT - request: method: post uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/ body: encoding: UTF-8 string: '{"name":"new advertiser c82c99ac2402fc091bdaf69fb38111b1","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:22 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": 40373}' http_version: recorded_at: Fri, 24 Apr 2015 22:37:25 GMT - request: method: post uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/ body: encoding: UTF-8 string: '{"advertiser_id":40373,"name":"Special Product 2808444880785d36e9b86857a17793e8","category_id":1010,"status_id":9,"headline":"Buy our product today 343b5281704410d49a220e13e50a65c4","body":"Try for FREE for a limited time only. This is your one-and-only chance! b9f8de5db8ba443e4de902c611f39f67","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:23 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": 79790}' http_version: recorded_at: Fri, 24 Apr 2015 22:37:26 GMT - request: method: post uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/ body: encoding: UTF-8 string: '{"name":"new advertiser b1a7396721a395c28ec8f2b6dbae5e6b","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:24 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": 40374}' http_version: recorded_at: Fri, 24 Apr 2015 22:37:26 GMT - request: method: post uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/ body: encoding: UTF-8 string: '{"advertiser_id":40374,"name":"Special Product 9e38ca92253b72e412ce9c666fcc5bea","category_id":1010,"status_id":9,"headline":"Buy our product today c88541b4621842e2b19597b11dfa127d","body":"Try for FREE for a limited time only. This is your one-and-only chance! 19f51934918e30b713be4192b5ad99b6","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:24 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": 79791}' http_version: recorded_at: Fri, 24 Apr 2015 22:37:28 GMT - request: method: post uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/79790/datatransfers/ body: encoding: UTF-8 string: '{"name":"DT for Special Product 1 0ed94bb408eaed1566b33f621752fd27","status_id":1,"type":"http","offer_id":79790,"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:26 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": 90076}' http_version: recorded_at: Fri, 24 Apr 2015 22:37:28 GMT - request: method: get uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/datatransfers/90076/ 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:26 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: '{"id": 90076, "name": "DT for Special Product 1 0ed94bb408eaed1566b33f621752fd27", "status_id": 1, "type": "http", "offer_id": 79790, "dt_info": {"base_url": "http://www.someclientbaseurl.com", "method": "POST"}, "data_fields": [{"email": "#{EM}"}, {"first_name": "#{FN}"}, {"last_name": "#{LN}"}, {"zip": "#{PO}"}, {"gender": "#{G}"}]}' http_version: recorded_at: Fri, 24 Apr 2015 22:37:29 GMT recorded_with: VCR 2.9.3