notifyDownload(fileNo: string, devId: string)

版本要求:
@tuya-miniapp/cloud-api≥1.0.5

描述

宠物媒体文件下载

参数

参数类型必填说明
fileNostring是云存文件 id
devIdstring是设备 id

返回值

类型:Promise<boolean>
boolean

示例代码

请求示例

import { notifyDownload } from '@tuya-miniapp/cloud-api';

notifyDownload('cloud-file-id', 'vdevo167504******003')
  .then((ok) => {
    console.log(ok);
  })
  .catch();

返回示例

true