id: api-particle

info:
  name: Particle Cloud API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://docs.particle.io/reference
  metadata:
    max-request: 1
  tags: token-spray,particle

self-contained: true

http:
  - method: GET
    path:
      - "https://api.particle.io/v1/user?access_token={{token}}"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - '"account_info":'
          - '"username":'
        condition: and
# digest: 4a0a004730450220377b6116f1a7982d32f2b885b9f5301db16e2c8ad48891ff56547bf30f775729022100cbddf1b3f486a78e8e8b9e098516f35fbd4715665e811eb16b83675077fb640f:922c64590222798bb761d5b6d8e72950