fastruby/harvesting

View on GitHub
fixtures/vcr_cassettes/Harvesting_Client_me/returns_the_authenticated_user.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: https://api.harvestapp.com/v2/users/me
    body:
      encoding: UTF-8
      string: ''
    headers:
      User-Agent:
      - Harvesting Ruby Gem
      Authorization:
      - Bearer $HARVEST_NON_ADMIN_ACCESS_TOKEN
      Harvest-Account-Id:
      - "$HARVEST_ACCOUNT_ID"
      Connection:
      - close
      Host:
      - api.harvestapp.com
  response:
    status:
      code: 200
      message: OK
    headers:
      Server:
      - nginx
      Date:
      - Fri, 25 Jan 2019 18:32:09 GMT
      Content-Type:
      - application/json; charset=utf-8
      Transfer-Encoding:
      - chunked
      Connection:
      - close
      Status:
      - 200 OK
      X-Frame-Options:
      - SAMEORIGIN
      X-Xss-Protection:
      - 1; mode=block
      X-Content-Type-Options:
      - nosniff
      X-Download-Options:
      - noopen
      X-Permitted-Cross-Domain-Policies:
      - none
      Referrer-Policy:
      - strict-origin-when-cross-origin
      Cache-Control:
      - no-cache, no-store
      P3p:
      - 'CP="Our privacy policy is available online: https://www.getharvest.com/services/privacy-policy"'
      X-App-Server:
      - app9
      X-Robots-Tag:
      - noindex, nofollow
      Content-Security-Policy:
      - 'report-uri /csp_reports; default-src *; img-src * data:; font-src data: cache.harvestapp.com
        https://js.intercomcdn.com; script-src ''self'' ''unsafe-inline'' ''unsafe-eval''
        https://*.google-analytics.com https://*.nr-data.net https://ajax.googleapis.com
        cache.harvestapp.com https://js-agent.newrelic.com https://platform.twitter.com
        https://www.google.com https://www.googleadservices.com https://www.googletagmanager.com
        https://connect.facebook.net https://googleads.g.doubleclick.net https://app.intercom.io
        https://widget.intercom.io https://js.intercomcdn.com https://cdn.plaid.com;
        style-src ''self'' ''unsafe-inline'' cache.harvestapp.com https://www.google.com'
      X-Request-Id:
      - fbefb0ec67ea29ac293218dd24debdbe
      X-Runtime:
      - '0.057106'
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains
      X-Server:
      - lb4
    body:
      encoding: UTF-8
      string: '{"id":2516167,"first_name":"Aaron","last_name":"Burr","email":"scott+harvested-employee@corgibytes.com","telephone":"","timezone":"Eastern
        Time (US & Canada)","weekly_capacity":126000,"has_access_to_all_future_projects":false,"is_contractor":false,"is_admin":false,"is_project_manager":false,"can_see_rates":false,"can_create_projects":false,"can_create_invoices":false,"is_active":true,"created_at":"2019-01-18T21:21:18Z","updated_at":"2019-01-18T21:25:16Z","roles":[],"avatar_url":"https://cache.harvestapp.com/assets/profile_images/abraj_albait_towers.png?1547846478"}'
    http_version: 
  recorded_at: Fri, 25 Jan 2019 18:32:09 GMT
recorded_with: VCR 4.0.0