id: api-adafruit-io

info:
  name: Adafruit IO API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://io.adafruit.com/api/docs/
  metadata:
    max-request: 1
  tags: token-spray,adafruit

self-contained: true

http:
  - method: GET
    path:
      - "https://io.adafruit.com/api/v2/user"

    headers:
      X-AIO-Key: "{{token}}"
    matchers:
      - type: word
        part: body
        words:
          - '"username":'
          - '"id":'
        condition: and
# digest: 4a0a0047304502201d0706c85da8d3215cd3bb130bb7dbddcd54d58d8dd4de536fcb4a7c775eac48022100c6f03aec2af1e5e8c5020d325365f31ff255c6a2766d2b5d40b938f7bfca0e91:922c64590222798bb761d5b6d8e72950