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