id: api-calendly

info:
  name: Calendly API Test
  author: zzeitlin
  severity: info
  reference:
    - https://calendly.stoplight.io/docs/api-docs-v1/b3A6MTg3MDczNg-about-me
  metadata:
    max-request: 1
  tags: token-spray,calendly

self-contained: true

http:
  - method: GET
    path:
      - "https://calendly.com/api/v1/users/me"

    headers:
      X-Token: "{{token}}"
    matchers:
      - type: word
        part: body
        words:
          - '"data":'
          - '"id":'
          - '"email":'
        condition: and
# digest: 490a0046304402200874522ec5ad61afee42a8f7c287d3a1a73e122e8c86029afdd46d0a11d8c7060220144b35058136ec1c305218afe56f4a684b184f25ad73f9b6b21547bab0373290:922c64590222798bb761d5b6d8e72950