---
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:35: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": 40350, "name": "new advertiser 6499e33066154cacbd9a532c30e3ceb6",
        "status_id": 1, "category_id": 1010, "key": "", "create_date": "2015-04-24T18:36:18",
        "modify_date": "2015-04-24T18:36:18"}, {"id": 40351, "name": "new advertiser
        fc2b3cda478d63c71a0310c6f3a85ac6", "status_id": 1, "category_id": 1010, "key":
        "", "create_date": "2015-04-24T18:36:20", "modify_date": "2015-04-24T18:36:20"}]'
    http_version: 
  recorded_at: Fri, 24 Apr 2015 22:36:23 GMT
- request:
    method: delete
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40350/
    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: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:36:23 GMT
- request:
    method: delete
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40351/
    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: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:36: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:35: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:36:24 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
    body:
      encoding: UTF-8
      string: '{"name":"new advertiser c09fd615bd76ae7f7715880ab209db5a","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: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": 40352}'
    http_version: 
  recorded_at: Fri, 24 Apr 2015 22:36:24 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/
    body:
      encoding: UTF-8
      string: '{"advertiser_id":40352,"name":"Special Product a2b5679eb043a14622b2c7cf19b25345","category_id":1010,"status_id":9,"headline":"Buy
        our product today 19e6a3c40bd9366350bd55d0f15db5f4","body":"Try for FREE for
        a limited time only. This is your one-and-only chance! 98bf52479927267586f0a57c5113a8dc","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: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": "Request Successful", "message": "Offer successfully created",
        "id": 79769}'
    http_version: 
  recorded_at: Fri, 24 Apr 2015 22:36:26 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/79769/datatransfers/
    body:
      encoding: UTF-8
      string: '{"name":"DT for Special Product 1 f4f1209d1757485c24f2eb3285deb62a","status_id":1,"type":"http","offer_id":79769,"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: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", "id": 90065}'
    http_version: 
  recorded_at: Fri, 24 Apr 2015 22:36:26 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
    body:
      encoding: UTF-8
      string: '{"name":"new advertiser bd9f0c9da37e8a9fcf3ffd7749665db9","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: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": 40353}'
    http_version: 
  recorded_at: Fri, 24 Apr 2015 22:36:26 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/
    body:
      encoding: UTF-8
      string: '{"advertiser_id":40353,"name":"Special Product 20e9f9b39f5ad007d49906bb194b0124","category_id":1010,"status_id":9,"headline":"Buy
        our product today d38347d23e49cd7eab240a9935b27d2d","body":"Try for FREE for
        a limited time only. This is your one-and-only chance! 840f4cc8520b9438a0cb2aaf1bd42a54","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: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": 79770}'
    http_version: 
  recorded_at: Fri, 24 Apr 2015 22:36:28 GMT
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/offers/79770/datatransfers/
    body:
      encoding: UTF-8
      string: '{"name":"DT for Special Product 1 0d948186d3e3ca05f408d0f9abf44b2f","status_id":1,"type":"http","offer_id":79770,"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: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": 90066}'
    http_version: 
  recorded_at: Fri, 24 Apr 2015 22:36:28 GMT
- request:
    method: get
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/datatransfers/
    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: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: '[{"id": 90065, "name": "DT for Special Product 1 f4f1209d1757485c24f2eb3285deb62a",
        "status_id": 1, "type": "http", "offer_id": 79769, "dt_info": {"base_url":
        "http://www.someclientbaseurl.com", "method": "POST"}, "data_fields": [{"email":
        "#{EM}"}, {"first_name": "#{FN}"}, {"last_name": "#{LN}"}, {"zip": "#{PO}"},
        {"gender": "#{G}"}]}, {"id": 90066, "name": "DT for Special Product 1 0d948186d3e3ca05f408d0f9abf44b2f",
        "status_id": 1, "type": "http", "offer_id": 79770, "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:36:29 GMT
recorded_with: VCR 2.9.3