--- 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:50: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: '[{"id": 40416, "name": "new advertiser 5c1d9129e9060e0539d8042b58e6d201", "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:45:45", "modify_date": "2015-04-24T18:45:45"}]' http_version: recorded_at: Fri, 24 Apr 2015 22:51:10 GMT - request: method: delete uri: https://:@oiapi.com/v1/advertisers/40416/ 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:50:08 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:51:10 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:50: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: "[]" http_version: recorded_at: Fri, 24 Apr 2015 22:51:10 GMT - request: method: post uri: https://:@oiapi.com/v1/advertisers/ body: encoding: UTF-8 string: '{"name":"new advertiser 962e5c1947772860aa906d9a7bc3841a","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:50: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": "Create Successful", "message": "Advertiser successfully created", "id": 40417}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:11 GMT - request: method: post uri: https://:@oiapi.com/v1/offers/ body: encoding: UTF-8 string: '{"advertiser_id":40417,"name":"Special Product 57e2c7a527167f0327641926bf64114c","category_id":1010,"status_id":9,"headline":"Buy our product today dd3fd5234c2a2e5188e75e037467d896","body":"Try for FREE for a limited time only. This is your one-and-only chance! 5f49f68d3aa09c892c1f0aeed064b508","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:50: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": 79828}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:12 GMT - request: method: post uri: https://:@oiapi.com/v1/advertisers/ body: encoding: UTF-8 string: '{"name":"new advertiser 62afa30c70c40c3745c622ff5900dc61","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:50:10 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": 40418}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:13 GMT - request: method: post uri: https://:@oiapi.com/v1/offers/ body: encoding: UTF-8 string: '{"advertiser_id":40418,"name":"Special Product daee9025e551687f423274f8b8c2a3c7","category_id":1010,"status_id":9,"headline":"Buy our product today 45e1e8912c455f28b0a307d97d40148b","body":"Try for FREE for a limited time only. This is your one-and-only chance! b204b9eaa26b1b8dea39919cbb07063d","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:50: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": "Request Successful", "message": "Offer successfully created", "id": 79829}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:14 GMT - request: method: post uri: https://:@oiapi.com/v1/offers/79828/datatransfers/ body: encoding: UTF-8 string: '{"name":"DT for Special Product 1 c460efa553513eb6ab1e314c27ed91fa","status_id":1,"type":"http","offer_id":79828,"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:50:12 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": 90081}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:14 GMT - request: method: put uri: https://:@oiapi.com/v1/offers/79828/datatransfers/90081/ body: encoding: UTF-8 string: '{"status_id":2}' 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:50:12 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": "Update Successful"}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:15 GMT recorded_with: VCR 2.9.3