getStorageSecret(params: GetStorageSecretParams)

Requires:
@tuya-miniapp/cloud-api≥1.0.5

Description

Get the file decryption key at the home level

Parameters

ParameterTypeRequiredDescription
Yesgid: family ID

Return Value

Type: Promise<string>
Key information (string)

Examples

Request example

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

getStorageSecret({ gid: '194137' })
  .then((secret) => console.log(secret))
  .catch(console.error);

Response example

"base64-secret-placeholder"