id: api-strava

info:
  name: Strava API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://developers.strava.com/docs/getting-started/
  metadata:
    max-request: 1
  tags: token-spray,strava

self-contained: true

http:
  - method: GET
    path:
      - "https://www.strava.com/api/v3/athlete"

    headers:
      Authorization: Bearer {{token}}
    matchers:
      - type: word
        part: body
        words:
          - '"id"'
          - '"username"'
        condition: and
# digest: 4b0a00483046022100effd34206228d052887ba1cab4e27b593fee2c7bdd63a534ae3b4bd27629e0e8022100dadd829eb9ca0ad91a82f83cc43ebe859649072f2a7d41dd5cae2c66d2a57ca7:922c64590222798bb761d5b6d8e72950