--- 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:50:29 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": 40423, "name": "new advertiser 547beb976670c0da1cad4d3ba595f6fb", "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:51:27", "modify_date": "2015-04-24T18:51:27"}, {"id": 40424, "name": "new advertiser 667141b0cb64afdd7ca7df42ab54d5c5", "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:51:29", "modify_date": "2015-04-24T18:51:29"}]' http_version: recorded_at: Fri, 24 Apr 2015 22:51:32 GMT - request: method: delete uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40423/ 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:29 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:32 GMT - request: method: delete uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40424/ 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:30 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:32 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:50:30 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:32 GMT - request: method: post uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/ body: encoding: UTF-8 string: '{"name":"new advertiser 135e5b2975c79e15f7f0a8a44a2419f2","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:30 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": 40425}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:33 GMT - request: method: post uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/ body: encoding: UTF-8 string: '{"advertiser_id":40425,"name":"Special Product 84f0e55534057c4b48cf99b6e7178c0c","category_id":1010,"status_id":9,"headline":"Buy our product today c5542a11a418155703fdc90fe70d865d","body":"Try for FREE for a limited time only. This is your one-and-only chance! 538b6e2ad73a0d79e2d48b197f36269f","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:31 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": 79836}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:34 GMT - request: method: post uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/ body: encoding: UTF-8 string: '{"name":"new advertiser 04b8b471953375f68057f11201862c3e","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:32 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": 40426}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:34 GMT - request: method: post uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/ body: encoding: UTF-8 string: '{"advertiser_id":40426,"name":"Special Product e4d6872c940c088404fc1197369aa4ba","category_id":1010,"status_id":9,"headline":"Buy our product today 32271ee92afa8b1fbdca5ff1f2fdb663","body":"Try for FREE for a limited time only. This is your one-and-only chance! 7590c6077ce6753c7e3fff61d5aa376c","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:32 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": 79837}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:36 GMT - request: method: post uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/79836/datatransfers/ body: encoding: UTF-8 string: '{"name":"DT for Special Product 1 23f37c6e8d274e157a0bff13a26dbc75","status_id":1,"type":"http","offer_id":79836,"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:34 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": 90085}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:36 GMT - request: method: put uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/79836/datatransfers/90085/ body: encoding: UTF-8 string: '{"status_id":10}' headers: Content-Type: - application/json User-Agent: - OiApiRuby Gem 0.1.1 response: status: code: 400 message: BAD REQUEST headers: Date: - Fri, 24 Apr 2015 22:50:34 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 Failed", "message": {"status_id": ["not a valid status"]}}' http_version: recorded_at: Fri, 24 Apr 2015 22:51:36 GMT recorded_with: VCR 2.9.3