---
http_interactions:
- request:
    method: post
    uri: http://localhost:3000/locomotive/api/v3/tokens.json
    body:
      encoding: UTF-8
      string: email=john%40doe.net&password=asimplepassword
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/x-www-form-urlencoded
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      User-Agent:
      - Ruby
  response:
    status:
      code: 401
      message: Unauthorized
    headers:
      Content-Type:
      - application/json
      X-Error-Detail:
      - Invalid email or password.
      Cache-Control:
      - no-cache
      X-Request-Id:
      - 67371fd8-e71d-47c6-9ea5-24823f00f5b7
      X-Runtime:
      - '0.574367'
      Content-Length:
      - '40'
    body:
      encoding: UTF-8
      string: '{"message":"Invalid email or password."}'
    http_version: 
  recorded_at: Tue, 09 Feb 2016 14:25:25 GMT
- request:
    method: post
    uri: http://localhost:3000/locomotive/api/v3/my_account.json
    body:
      encoding: UTF-8
      string: account%5Bemail%5D=john%40doe.net&account%5Bname%5D=John&account%5Bpassword%5D=asimplepassword
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/x-www-form-urlencoded
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      User-Agent:
      - Ruby
  response:
    status:
      code: 201
      message: Created
    headers:
      Content-Type:
      - application/json
      Etag:
      - W/"f8e9fc256557962ee7f36785141e885c"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 43551abc-a8ba-4e9d-a68c-25d2af9ad6f3
      X-Runtime:
      - '0.238519'
      Content-Length:
      - '250'
    body:
      encoding: UTF-8
      string: '{"_id":"56b9f6d5c365110cfa478505","created_at":"2016-02-09T14:25:25Z","updated_at":"2016-02-09T14:25:25Z","name":"John","email":"john@doe.net","locale":"en","api_key":"fdc989becf61cce3fc8624779958ae1f8ca9c1bb","super_admin":false,"local_admin":false}'
    http_version: 
  recorded_at: Tue, 09 Feb 2016 14:25:25 GMT
- request:
    method: post
    uri: http://localhost:3000/locomotive/api/v3/tokens.json
    body:
      encoding: UTF-8
      string: email=admin%40locomotivecms.com&password=locomotive
    headers:
      Accept:
      - application/json
      Content-Type:
      - application/x-www-form-urlencoded
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      User-Agent:
      - Ruby
  response:
    status:
      code: 201
      message: Created
    headers:
      Content-Type:
      - application/json
      Etag:
      - W/"5650794f81165b37dc4b300464c0391d"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 9e185d9d-46b6-4405-8f61-5d4e1ad4bd5a
      X-Runtime:
      - '0.024152'
      Content-Length:
      - '32'
    body:
      encoding: UTF-8
      string: '{"token":"hmxKh_qZ_HL8hQVS6mDP"}'
    http_version: 
  recorded_at: Tue, 09 Feb 2016 14:25:25 GMT
- request:
    method: get
    uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=hmxKh_qZ_HL8hQVS6mDP
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept:
      - application/json
      X-Locomotive-Account-Email:
      - admin@locomotivecms.com
      X-Locomotive-Account-Token:
      - hmxKh_qZ_HL8hQVS6mDP
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Etag:
      - W/"05957b7bce6180e8505f98c9aa8a3ebb"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 4d5c8f7c-6b29-4e66-bcd4-adff9c5e513f
      X-Runtime:
      - '0.039360'
      Content-Length:
      - '261'
    body:
      encoding: UTF-8
      string: '{"_id":"56b9f6b1c365110cdcd0d1cf","created_at":"2016-02-09T14:24:49Z","updated_at":"2016-02-09T14:24:49Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
    http_version: 
  recorded_at: Tue, 09 Feb 2016 14:25:25 GMT
- request:
    method: get
    uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=hmxKh_qZ_HL8hQVS6mDP
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept:
      - application/json
      X-Locomotive-Account-Email:
      - admin@locomotivecms.com
      X-Locomotive-Account-Token:
      - hmxKh_qZ_HL8hQVS6mDP
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      Etag:
      - W/"05957b7bce6180e8505f98c9aa8a3ebb"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 10eeb9eb-c3c4-46f6-92ce-e3ed0a0b63b6
      X-Runtime:
      - '0.019466'
      Content-Length:
      - '261'
    body:
      encoding: UTF-8
      string: '{"_id":"56b9f6b1c365110cdcd0d1cf","created_at":"2016-02-09T14:24:49Z","updated_at":"2016-02-09T14:24:49Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
    http_version: 
  recorded_at: Tue, 09 Feb 2016 14:25:25 GMT
recorded_with: VCR 3.0.0
