id: api-userstack

info:
  name: User Stack API Test
  author: 0xpugal
  severity: info
  reference:
    - https://userstack.com/documentation
  metadata:
    max-request: 1
  tags: token-spray,userstack

self-contained: true

http:
  - method: GET
    path:
      - "http://api.userstack.com/api/detect?access_key={{token}}&ua=Mozilla/5.0%20(Macintosh;%20Intel%20Mac%20OS%20X%2010_14_0)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/71.0.3578.98%20Safari/537.36"

    matchers:
      - type: word
        part: body
        words:
          - '"ua":'
          - '"name":'
          - '"brand":'
        condition: and
# digest: 4a0a00473045022100fccfb8ec1a71f7fb79aaf1e502ad68d3f82d157db2f5b7ada87c6bc3878b086a02202497155729ed5dc364b323f45b00964d4b6dfc103522c93d661393d56477a600:922c64590222798bb761d5b6d8e72950