Sha256: 3484f7a263dfd3d7724c385457e358f41325a3c025cfa66bf4f29538474deb33

Contents?: true

Size: 1.87 KB

Versions: 5

Compression:

Stored size: 1.87 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
    body:
      encoding: UTF-8
      string: '{"name":"new advertiser 29938f640736748e42b4d516fb8ef4ff","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:02:23 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": 40604}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:03:30 GMT
- request:
    method: put
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40604/cards/99999999999999/
    body:
      encoding: UTF-8
      string: '{"address_zip":11211}'
    headers:
      Content-Type:
      - application/json
      User-Agent:
      - OiApiRuby Gem 0.1.1
  response:
    status:
      code: 404
      message: NOT FOUND
    headers:
      Date:
      - Tue, 28 Apr 2015 21:02:23 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 Failed", "message": "Card not found.", "error":
        true}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 21:03:32 GMT
recorded_with: VCR 2.9.3

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oi-api-ruby-0.1.5 spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/when_card_not_found/returns_404.yml
oi-api-ruby-0.1.4 spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/when_card_not_found/returns_404.yml
oi-api-ruby-0.1.3 spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/when_card_not_found/returns_404.yml
oi-api-ruby-0.1.2 spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/when_card_not_found/returns_404.yml
oi-api-ruby-0.1.1 spec/cassettes/OiApi_Client_Cards/_update_card/it_should_behave_like_PUT_resource/when_card_not_found/returns_404.yml