Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

customerlobby / lobbyist-ruby   ruby

Repository URL to install this package:

/ spec / cassettes / promo_create.yml

---
http_interactions:
- request:
    method: post
    uri: http://localhost:3000/v1/promos.json
    body:
      encoding: UTF-8
      string: '{"promo":{"account_level_id":2,"code":"promo_new","description":"promo_new","status":"active","visible":1,"setup_fee":0,"monthly_fee":0},"nonce":"2015-11-30
        19:49:47 UTC"}'
    headers:
      User-Agent:
      - Faraday v0.9.2
      Accept:
      - application/json
      Content-Type:
      - application/json
      Authorization:
      - Token token="Jz43pwlU1rb4ewhgltWO", signature="f02fdaf792b640f6a35a005591c3bda7ffa2310840e836aacaf619e4ca3d5b69"
  response:
    status:
      code: 200
      message: 
    headers:
      content-type:
      - application/json; charset=utf-8
      vary:
      - Origin
      x-ua-compatible:
      - IE=Edge
      etag:
      - '"c8d03fd76c05a126b374c87c39d3e7f7"'
      cache-control:
      - max-age=0, private, must-revalidate
      set-cookie:
      - _api_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWZiYmFkNDMxNTNiMWE1YmI2OTQwM2YxNzhmNjMyMGU4BjsAVA%3D%3D--491d0123e6b051c3b8f9ab017303c1d72e14598d;
        path=/; HttpOnly
      x-request-id:
      - b8e211cdfb135b09a3c4f85294e6fc91
      x-runtime:
      - '0.028460'
      connection:
      - close
      server:
      - thin 1.5.1 codename Straight Razor
    body:
      encoding: UTF-8
      string: '{"promo_id":246,"account_level_id":2,"promo_code":"promo_new","promo_description":"promo_new","promo_status":"active","visible":true,"expires_at":null,"setup_fee":"0.0","monthly_fee":"0.0","cost_per_postcard":null,"customer_count_lower_bound":null,"customer_count_upper_bound":null}'
    http_version: 
  recorded_at: Mon, 30 Nov 2015 19:49:47 GMT
recorded_with: VCR 3.0.0