---
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:
      User-Agent:
      - Faraday v0.14.0
      Accept:
      - application/json
      Content-Type:
      - application/x-www-form-urlencoded
  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:
      - 3135ef1e-c2ff-4ebd-9ef3-84f81719f663
      X-Runtime:
      - '0.003065'
      Content-Length:
      - '40'
    body:
      encoding: UTF-8
      string: '{"message":"Invalid email or password."}'
    http_version: 
  recorded_at: Fri, 09 Mar 2018 11:20:57 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:
      User-Agent:
      - Faraday v0.14.0
      Accept:
      - application/json
      Content-Type:
      - application/x-www-form-urlencoded
  response:
    status:
      code: 201
      message: Created
    headers:
      Content-Type:
      - application/json
      ETag:
      - W/"8e497a154dca317960b23d7d1bfa7251"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 5ea41529-a8bf-4cd8-a690-2f005979635c
      X-Runtime:
      - '0.050731'
      Content-Length:
      - '250'
    body:
      encoding: UTF-8
      string: '{"_id":"5aa26e19e051bb8a0de44ece","created_at":"2018-03-09T11:20:57Z","updated_at":"2018-03-09T11:20:57Z","name":"John","email":"john@doe.net","locale":"en","api_key":"ddb35822ed0ebc95083e3ed1b506361bb94f10b2","super_admin":false,"local_admin":false}'
    http_version: 
  recorded_at: Fri, 09 Mar 2018 11:20:57 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:
      User-Agent:
      - Faraday v0.14.0
      Accept:
      - application/json
      Content-Type:
      - application/x-www-form-urlencoded
  response:
    status:
      code: 201
      message: Created
    headers:
      Content-Type:
      - application/json
      ETag:
      - W/"f002e74c360f53454cb2d1c4dc596c9d"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - b4b4c001-6a51-422f-87f5-c55e1e22880d
      X-Runtime:
      - '0.004271'
      Content-Length:
      - '32'
    body:
      encoding: UTF-8
      string: '{"token":"7ussE5FK8ZQAWxoYWaoJ"}'
    http_version: 
  recorded_at: Fri, 09 Mar 2018 11:20:57 GMT
- request:
    method: get
    uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=7ussE5FK8ZQAWxoYWaoJ
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - Faraday v0.14.0
      Accept:
      - application/json
      X-Locomotive-Account-Email:
      - admin@locomotivecms.com
      X-Locomotive-Account-Token:
      - 7ussE5FK8ZQAWxoYWaoJ
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      ETag:
      - W/"f50f010a60faed3360aeeea1e3c7a890"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - e8bbcf8c-f607-4f56-ac39-0beafc90ad7b
      X-Runtime:
      - '0.005462'
      Content-Length:
      - '261'
    body:
      encoding: UTF-8
      string: '{"_id":"5aa26db4e051bb89c3fe7684","created_at":"2018-03-09T11:19:16Z","updated_at":"2018-03-09T11:19:16Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
    http_version: 
  recorded_at: Fri, 09 Mar 2018 11:20:57 GMT
- request:
    method: get
    uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=7ussE5FK8ZQAWxoYWaoJ
    body:
      encoding: US-ASCII
      string: ''
    headers:
      User-Agent:
      - Faraday v0.14.0
      Accept:
      - application/json
      X-Locomotive-Account-Email:
      - admin@locomotivecms.com
      X-Locomotive-Account-Token:
      - 7ussE5FK8ZQAWxoYWaoJ
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json
      ETag:
      - W/"f50f010a60faed3360aeeea1e3c7a890"
      Cache-Control:
      - max-age=0, private, must-revalidate
      X-Request-Id:
      - 60488f67-93ca-49c7-9292-e0f9c115dc9a
      X-Runtime:
      - '0.005633'
      Content-Length:
      - '261'
    body:
      encoding: UTF-8
      string: '{"_id":"5aa26db4e051bb89c3fe7684","created_at":"2018-03-09T11:19:16Z","updated_at":"2018-03-09T11:19:16Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
    http_version: 
  recorded_at: Fri, 09 Mar 2018 11:20:57 GMT
recorded_with: VCR 4.0.0
