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 / company_user_create.yml

---
http_interactions:
- request:
    method: post
    uri: http://localhost:3000/v1/company_users.json
    body:
      encoding: UTF-8
      string: '{"company_id":127,"company_user":{"email":"johndoe@gmail.com","first_name":"John","last_name":"Doe","password":"3hg8dkfje4uf9dufs90ufskfjeil","password_confirmation":"3hg8dkfje4uf9dufs90ufskfjeil","is_active":"1","is_manager":"1","primary_contact":"1","accepts_terms":"1"},"nonce":"2015-11-30
        23:41:31 UTC"}'
    headers:
      User-Agent:
      - Faraday v0.9.2
      Accept:
      - application/json
      Content-Type:
      - application/json
      Authorization:
      - Token token="Jz43pwlU1rb4ewhgltWO", signature="2332acd6949bc0dadef7031a0659d13efe009d67a5151efb827db52c191d4b02"
  response:
    status:
      code: 200
      message: 
    headers:
      content-type:
      - application/json; charset=utf-8
      vary:
      - Origin
      x-ua-compatible:
      - IE=Edge
      etag:
      - '"aeb14e55cbcc24a1a7dff382458adb14"'
      cache-control:
      - max-age=0, private, must-revalidate
      set-cookie:
      - _api_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWE2NzBkMjY1N2RmNTVhYmJjNGFhODEyZWY2MTNmZjlmBjsAVA%3D%3D--90790683fb2b42a9860e942cae2365e2de1c6204;
        path=/; HttpOnly
      x-request-id:
      - 0ee3551db87bde86afa06f048fcc6894
      x-runtime:
      - '0.068927'
      connection:
      - close
      server:
      - thin 1.5.1 codename Straight Razor
    body:
      encoding: UTF-8
      string: '{"company_user_id":44883,"company_id":127,"email":"johndoe@gmail.com","first_name":"John","last_name":"Doe","is_active":true,"is_manager":true,"primary_contact":true,"accepts_terms":true,"sugar_contact_id":null}'
    http_version: 
  recorded_at: Mon, 30 Nov 2015 23:41:32 GMT
recorded_with: VCR 3.0.0