id: api-dropbox

info:
  name: Dropbox API Test
  author: zzeitlin
  severity: info
  reference:
    - https://www.dropbox.com/developers/documentation/http/documentation
  metadata:
    max-request: 1
  tags: token-spray,dropbox

self-contained: true

http:
  - method: POST
    path:
      - "https://api.dropboxapi.com/2/users/get_current_account"

    headers:
      Authorization: Bearer {{token}}
    matchers:
      - type: word
        part: body
        words:
          - '"account_id":'
          - '"email":'
        condition: and
# digest: 4a0a00473045022059e0d373747e0f71ae8658e6eb4cc6664ec8fe1039ac5aaa3db526ff14461972022100f30b993510b03ebc6e7564e548105b4bac23e04ad49f0c587dc70a075134498c:922c64590222798bb761d5b6d8e72950