# 企微大文件异步下载

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/qw/doApi:
    post:
      summary: 企微大文件异步下载
      deprecated: false
      description: >-
        <div style="background: linear-gradient(135deg, rgba(255, 213, 145,
        0.45) 0%, rgba(255, 255, 255, 0.06) 100%); border: 1px solid rgba(255,
        236, 202, 0.7); border-radius: 12px; padding: 20px 28px; margin-bottom:
        20px; box-shadow: 0 4px 12px rgba(250, 140, 22, 0.08);">
          <h3 style="margin: 0 0 8px 0; font-size: 18px; font-weight: 600; color: inherit; border: none; padding-bottom: 0;">企微大文件异步下载</h3>
          <p style="margin: 0; font-size: 14px; color: inherit; line-height: 1.6;">下载地址为临时云资源，非官方CDN，7–15天不定期清理，请及时下载。<br> 文件大于20M使用此接口<br> 异步下载结果通过回调通知，详情查阅<a href="doc-7331304" style="">回调结构说明</a>中的 API 异步消息响应。<br> 根据回调返回的 requestId 值查询，requestId 一致即为对应下载结果。</p>
        </div>
      tags:
        - API参考/媒体与运营/文件与媒体（下载/上传）
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: X-QIWEI-TOKEN
          in: header
          description: >-
            <p style="margin: 0; font-size: 14px; color: inherit; line-height:
            1.6;">进入 <a href="https://new.qiweapi.com/tokens" style="color:
            inherit; text-decoration: underline; font-weight: 600;">应用凭证</a>，复制
            <code style="color: inherit; background: rgba(82, 196, 26, 0.08);
            border: 1px solid rgba(82, 196, 26, 0.1); padding: 2px 4px;
            border-radius: 3px;">TokenId</code>。</p>
          required: true
          example: '{{tokenId}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  description: >-
                    <code style="color: inherit; background: rgba(82, 196, 26,
                    0.08); border: 1px solid rgba(82, 196, 26, 0.1); padding:
                    2px 4px; border-radius:
                    3px;">/cloud/cdnBigFileDownloadByUrlAsync</code>
                params:
                  type: object
                  properties:
                    guid:
                      type: string
                    filekey:
                      type: string
                      description: 当fileId以*开头时，为空；否则不为空
                    fileId:
                      type: string
                    fileSize:
                      type: integer
                    filename:
                      type: string
                      description: 需要加后后缀名  避免后缀丢失。
                    fileType:
                      type: integer
                      description: 22大视频 35文件
                    fileMd5:
                      type: string
                  required:
                    - guid
                    - filekey
                    - fileId
                    - fileSize
                    - filename
                    - fileType
                    - fileMd5
                  x-apifox-orders:
                    - guid
                    - filekey
                    - fileId
                    - fileSize
                    - filename
                    - fileMd5
                    - fileType
              required:
                - method
                - params
              x-apifox-orders:
                - method
                - params
            example:
              method: /cloud/cdnBigFileDownloadByUrlAsync
              params:
                guid: '{{guid}}'
                filekey: 7811109615**********254038542f16372
                fileId: >-
                  3069020102046230600**********030f55ca0204594ba16f020465e1a9dd042436303730666431652d656266392d346633622d623264662d6634613133653631656137390201000203165380041054c4e6ddcb1035f74aa46fd4da1bcc110201020201000400
                fileSize: 1463157
                fileMd5: ''
                filename: ''
                fileType: 35
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态码
                    description: >-
                      <p style="margin: 0; font-size: 14px; color: inherit;
                      line-height: 1.6;">状态码，<code style="color: inherit;
                      background: rgba(82, 196, 26, 0.08); border: 1px solid
                      rgba(82, 196, 26, 0.1); padding: 2px 4px; border-radius:
                      3px;">0</code> 成功。</p>
                  data:
                    type: object
                    properties:
                      requestId:
                        type: string
                        description: ''
                        title: 请求Id
                    required:
                      - requestId
                    x-apifox-orders:
                      - requestId
                    title: 响应数据
                    description: >-
                      <p style="margin: 0; font-size: 14px; color: inherit;
                      line-height: 1.6;">业务数据。</p>
                  msg:
                    type: string
                    title: 说明
                    description: >-
                      <p style="margin: 0; font-size: 14px; color: inherit;
                      line-height: 1.6;">返回说明。</p>
                required:
                  - code
                  - data
                  - msg
                x-apifox-orders:
                  - code
                  - data
                  - msg
              example:
                code: 0
                data:
                  requestId: 57a360fd-f920-4b4d-84c0-351ec1c63fe8
                msg: 成功
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: API参考/媒体与运营/文件与媒体（下载/上传）
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7051713/apis/api-389691087-run
components:
  schemas: {}
  securitySchemes:
    apiKey:
      type: apikey
      in: header
      name: X-WECOM-TOKEN
servers:
  - url: https://new.qiweapi.com/qiwe
    description: 正式环境
security: []

```
