id: api-wakatime

info:
  name: WakaTime CI API Test
  author: zzeitlin
  severity: info
  reference:
    - https://wakatime.com/developers
  metadata:
    max-request: 1
  tags: token-spray,wakatime

self-contained: true

http:
  - method: GET
    path:
      - "https://wakatime.com/api/v1/users/current/projects/?api_key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"data":'
          - '"seconds":'
          - '"is_up_to_date":'
        condition: and
# digest: 4a0a00473045022100fd25cfef300f6233d5084dd7c76e6c9582742f70705305d9b5d1ba2a2491f5aa0220201ee9491d6f1374c54208410744324bf63f1535a1095e9bf3fc1f0c92e63e8f:922c64590222798bb761d5b6d8e72950