复制 Markdown查看 MarkdowngetStorageSecretByDeviceId(params: GetStorageSecretByDeviceIdParams)版本要求:@tuya-miniapp/cloud-api≥1.0.5描述以设备维度获取文件解密密钥参数参数类型必填说明›paramsGetStorageSecretByDeviceIdParams是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"上一页getStorageSecret下一页bindDevice