id: api-bitrise

info:
  name: Bitrise API Test
  author: daffainfo
  severity: info
  description: Build tool and processes integrations to create efficient development pipelines
  reference:
    - https://api-docs.bitrise.io/
    - https://github.com/daffainfo/all-about-apikey/tree/main/bitrise
  metadata:
    max-request: 1
  tags: token-spray,bitrise

self-contained: true

http:
  - raw:
      - |
        GET https://api.bitrise.io/v0.1/me HTTP/1.1
        Host: api.bitrise.io
        Authorization: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"username":'
          - '"slug":'
          - '"email":'
        condition: and
# digest: 4b0a00483046022100d7ea76b365af8c704efa9abf177c49d274f2b61eb8074f1a6f53dc0cfd61cc58022100d0873e4207711fa9065555b9335529e1c1575b46e81ac01095aac064293091ec:922c64590222798bb761d5b6d8e72950