---
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:
      - Tue, 28 Apr 2015 21:43: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: '[{"id": 40687, "name": "new advertiser 2f197133b6fa9d5fee8835a4bb248d14",
        "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-28T17:42:25",
        "modify_date": "2015-04-28T17:42:25"}, {"id": 40688, "name": "new advertiser
        11f4ae02839cafc6b5603c827a2bd0f9", "status_id": 1, "category_id": 1010, "key":
        "", "create_date": "2015-04-28T17:42:27", "modify_date": "2015-04-28T17:42:27"},
        {"id": 40689, "name": "new advertiser 2f9bc6872a6c217714d9212120364b19", "status_id":
        1, "category_id": 1010, "key": "", "create_date": "2015-04-28T17:42:30", "modify_date":
        "2015-04-28T17:42:30"}]'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:19 GMT
- request:
    method: delete
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40687/
    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:
      - Tue, 28 Apr 2015 21:43: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": "Delete Successful", "message": "Advertiser Succesfully
        deleted"}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:19 GMT
- request:
    method: delete
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40688/
    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:
      - Tue, 28 Apr 2015 21:43: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": "Delete Successful", "message": "Advertiser Succesfully
        deleted"}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:20 GMT
- request:
    method: delete
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40689/
    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:
      - Tue, 28 Apr 2015 21:43:13 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: Tue, 28 Apr 2015 21:44:20 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:
      - Tue, 28 Apr 2015 21:43:13 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: Tue, 28 Apr 2015 21:44:20 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
    body:
      encoding: UTF-8
      string: '{"name":"new advertiser d6630de89a18f2c64ef82350663352b4","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:
      - Tue, 28 Apr 2015 21:43:13 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": 40690}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:21 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/
    body:
      encoding: UTF-8
      string: '{"advertiser_id":40690,"name":"Special Product 0fe3c1a25bfd056e6f391eb6cde5abd8","category_id":1010,"status_id":9,"headline":"Buy
        our product today 449546e504cacd9e9a68810c93cd71c3","body":"Try for FREE for
        a limited time only. This is your one-and-only chance! 3593f5c4b5b055fcdbbad6979beb98e2","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:
      - Tue, 28 Apr 2015 21:43:14 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": 80006}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:22 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/80006/autoresponders/
    body:
      encoding: UTF-8
      string: '{"status_id":1,"subject":"Here''s a good subject line","from_name":"Our
        Company","body_html":"some html here","body_text":"some text here"}'
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - OiApiRuby Gem 0.1.1
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Tue, 28 Apr 2015 21:43:15 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": 53574}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:23 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
    body:
      encoding: UTF-8
      string: '{"name":"new advertiser 1d30bb958fe9fb4f29116c771ad57384","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:
      - Tue, 28 Apr 2015 21:43:16 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": 40691}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:23 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/
    body:
      encoding: UTF-8
      string: '{"advertiser_id":40691,"name":"Special Product 3f6104f65dea7abec88767345894e9ae","category_id":1010,"status_id":9,"headline":"Buy
        our product today db087293cdd0fd649671d8cfd9359f1f","body":"Try for FREE for
        a limited time only. This is your one-and-only chance! dbec95b7faf13f5cb7b900b63c4c7914","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:
      - Tue, 28 Apr 2015 21:43:16 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": 80007}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:25 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/80007/autoresponders/
    body:
      encoding: UTF-8
      string: '{"status_id":1,"subject":"Here''s a good subject line","from_name":"Our
        Company","body_html":"some html here","body_text":"some text here"}'
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - OiApiRuby Gem 0.1.1
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Tue, 28 Apr 2015 21:43:18 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": 53575}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:25 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
    body:
      encoding: UTF-8
      string: '{"name":"new advertiser f38b6a5d93818d63f7d86a3d20793ed8","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:
      - Tue, 28 Apr 2015 21:43:18 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": 40692}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:25 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/
    body:
      encoding: UTF-8
      string: '{"advertiser_id":40692,"name":"Special Product d497425f8e3db1aad46c4b1f5960cffe","category_id":1010,"status_id":9,"headline":"Buy
        our product today 642c1706931d40e3d427e1818fee574a","body":"Try for FREE for
        a limited time only. This is your one-and-only chance! 0ac21491592403bf05bf7486a3a9af52","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:
      - Tue, 28 Apr 2015 21:43:18 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": 80008}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:27 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/80008/autoresponders/
    body:
      encoding: UTF-8
      string: '{"status_id":1,"subject":"Here''s a good subject line","from_name":"Our
        Company","body_html":"some html here","body_text":"some text here"}'
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - OiApiRuby Gem 0.1.1
  response:
    status:
      code: 200
      message: OK
    headers:
      Date:
      - Tue, 28 Apr 2015 21:43:20 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": 53576}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:27 GMT
- request:
    method: get
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/autoresponders/
    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:
      - Tue, 28 Apr 2015 21:43:20 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": 53574, "subject": "Here''s a good subject line", "offer_id":
        80006, "from_name": "Our Company", "status_id": 1, "body_text": "some text
        here", "body_html": "some html here"}, {"id": 53575, "subject": "Here''s a
        good subject line", "offer_id": 80007, "from_name": "Our Company", "status_id":
        1, "body_text": "some text here", "body_html": "some html here"}, {"id": 53576,
        "subject": "Here''s a good subject line", "offer_id": 80008, "from_name":
        "Our Company", "status_id": 1, "body_text": "some text here", "body_html":
        "some html here"}]'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:44:28 GMT
recorded_with: VCR 2.9.3