Sha256: 3a0b8783d0362ac60f633f1a1cc1c64b00ffae456e01e51aaa4d7d1ce572c3ec

Contents?: true

Size: 1.76 KB

Versions: 5

Compression:

Stored size: 1.76 KB

Contents

---
http_interactions:
- request:
    method: post
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/
    body:
      encoding: UTF-8
      string: '{"name":"new advertiser e76bbeda8644ec8a7d249bc573e4d9c6","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 20:04:51 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": 40535}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 20:05:58 GMT
- request:
    method: get
    uri: https://<USERNAME>:<PASSWORD>@oiapi.com/v1/advertisers/40535/balance/
    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 20:04:51 GMT
      Server:
      - Apache/2.2.15 (CentOS)
      Vary:
      - Accept,Cookie
      X-Frame-Options:
      - SAMEORIGIN
      Allow:
      - GET, HEAD, OPTIONS
      Connection:
      - close
      Transfer-Encoding:
      - chunked
      Content-Type:
      - application/json
    body:
      encoding: UTF-8
      string: '{"balance": 0.0}'
    http_version: 
  recorded_at: Tue, 28 Apr 2015 20:05:58 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_Balances/_balance/returns_a_balance.yml
oi-api-ruby-0.1.4 spec/cassettes/OiApi_Client_Balances/_balance/returns_a_balance.yml
oi-api-ruby-0.1.3 spec/cassettes/OiApi_Client_Balances/_balance/returns_a_balance.yml
oi-api-ruby-0.1.2 spec/cassettes/OiApi_Client_Balances/_balance/returns_a_balance.yml
oi-api-ruby-0.1.1 spec/cassettes/OiApi_Client_Balances/_balance/returns_a_balance.yml