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: 490a0046304402204e14d6831dc3433fb1c35b72ae25def21d4bcee2ebfbdd1d429ab3602253846902206097732347c7735b2f4ff15bce68205cc74c65e8d650ecbc5599674f83d02adb:922c64590222798bb761d5b6d8e72950
