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: 4b0a00483046022100f606c661876315023d560d20978ca2f27fba1b2e4493c76c486c8f6b6ac2c943022100855a74c20f0955665c3407d0fc22b6d17949fdc92ca06307417bf222b0930121:922c64590222798bb761d5b6d8e72950
