id: api-ddownload

info:
  name: ddownload API Test
  author: daffainfo
  severity: info
  description: File Sharing and Storage
  reference:
    - https://ddownload.com/api
    - https://github.com/daffainfo/all-about-apikey/tree/main/ddownload
  metadata:
    max-request: 1
  tags: token-spray,ddownload

self-contained: true

http:
  - method: GET
    path:
      - "https://api-v2.ddownload.com/api/account/info?key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"storage_left"'
          - '"premium_traffic_left"'
          - '"email"'
        condition: and
# digest: 490a0046304402200bd2b9dc0549b69cd191de0f8e4ef561f4ab017a2f95c779e8158c1cfab733f902203e27595e6ebb3ddbc25f326c575f01ece4edf1613e1147e0c0eb7e65d0105c12:922c64590222798bb761d5b6d8e72950