id: api-asana

info:
  name: Asana API Test
  author: zzeitlin
  severity: info
  description: Programmatic access to all data in your asana system
  reference:
    - https://developers.asana.com/docs/using-terminal
    - https://github.com/daffainfo/all-about-apikey/tree/main/asana
  metadata:
    max-request: 1
  tags: token-spray,asana

self-contained: true

http:
  - method: GET
    path:
      - "https://app.asana.com/api/1.0/users/me"

    headers:
      Authorization: Bearer {{token}}
    matchers:
      - type: word
        part: body
        words:
          - 'data:'
          - 'email'
          - 'name'
        condition: and
# digest: 4a0a0047304502203327c3a5463b3d2d2ab7ff6c46c1c43e3379660fff475bc6e8b27b2249d5b0e9022100b64880f4fd97ca61f2229c960abbd49d82d8b6885cfd1279d147c071bc29ee0d:922c64590222798bb761d5b6d8e72950