--- 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:35:06 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": 40346, "name": "new advertiser ce623fa24c42af99839eaa8032edf609", "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:36:04", "modify_date": "2015-04-24T18:36:04"}, {"id": 40347, "name": "new advertiser 9bd562a4023e0269fd3fb3353c8c2a4f", "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:36:06", "modify_date": "2015-04-24T18:36:06"}]' http_version: recorded_at: Fri, 24 Apr 2015 22:36:08 GMT - request: method: delete uri: https://:@oiapi.com/v1/advertisers/40346/ 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:35:06 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:36:09 GMT - request: method: delete uri: https://:@oiapi.com/v1/advertisers/40347/ 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:35:07 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:36:09 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:35:07 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:36:09 GMT - request: method: post uri: https://:@oiapi.com/v1/advertisers/ body: encoding: UTF-8 string: '{"name":"new advertiser 30d3c3d6b1b4048c0a819652918b4b6e","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:35:07 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": 40348}' http_version: recorded_at: Fri, 24 Apr 2015 22:36:10 GMT - request: method: post uri: https://:@oiapi.com/v1/offers/ body: encoding: UTF-8 string: '{"advertiser_id":40348,"name":"Special Product 9c067b1dec0f3edbc3cbb879e89edb56","category_id":1010,"status_id":9,"headline":"Buy our product today 6dbdfc0c5b8194dbe4eac020d2b79b1c","body":"Try for FREE for a limited time only. This is your one-and-only chance! b9a25fe13a9ced3090cd64060e42ed34","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:35:08 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": 79765}' http_version: recorded_at: Fri, 24 Apr 2015 22:36:11 GMT - request: method: post uri: https://:@oiapi.com/v1/advertisers/ body: encoding: UTF-8 string: '{"name":"new advertiser 305ee2f3c994009f283934b1ac62921e","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:35:09 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": 40349}' http_version: recorded_at: Fri, 24 Apr 2015 22:36:11 GMT - request: method: post uri: https://:@oiapi.com/v1/offers/ body: encoding: UTF-8 string: '{"advertiser_id":40349,"name":"Special Product 4899590ea8c8b78a5726644450c05b58","category_id":1010,"status_id":9,"headline":"Buy our product today b9b2b108656157f8eb2fd4d566084b8f","body":"Try for FREE for a limited time only. This is your one-and-only chance! cbe205dbdf0bfcddaa962408dddf1001","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:35:09 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": 79766}' http_version: recorded_at: Fri, 24 Apr 2015 22:36:13 GMT - request: method: post uri: https://:@oiapi.com/v1/offers/79765/datatransfers/ body: encoding: UTF-8 string: '{"name":"DT for Special Product 1 8deb1d63763af14bbdef082df2287d9e","status_id":1,"type":"http","offer_id":79765,"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:35:11 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": 90062}' http_version: recorded_at: Fri, 24 Apr 2015 22:36:13 GMT - request: method: delete uri: https://:@oiapi.com/v1/datatransfers/90062/ 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:35:11 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": "Request Successful", "message": "DataTransfer Succesfully Deleted"}' http_version: recorded_at: Fri, 24 Apr 2015 22:36:14 GMT recorded_with: VCR 2.9.3