getStorageSecretByDeviceId(params: GetStorageSecretByDeviceIdParams)

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

描述

以设备维度获取文件解密密钥

参数

参数类型必填说明
是devId:设备 id

返回值

类型:Promise<string>
密钥信息(字符串)

示例代码

请求示例

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

getStorageSecretByDeviceId({ devId: 'vdevo176127325226099' })
  .then((secret) => console.log(secret))
  .catch(console.error);

返回示例

"base64-secret-placeholder"