getAccountQuota(data: GetAccountQuotaParams)

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

描述

查询余额额度

参数

参数类型必填说明
是请求参数

返回值

类型:Promise<number>
GetAccountQuotaResult

示例代码

请求示例

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

getAccountQuota({ source: 'app', ownerId: 'home_xxx' })
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error('查询余额额度失败:', error);
  });

返回示例

90