getAccountDetail(data: GetAccountDetailParams)

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

描述

账号权益详情

参数

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

返回值

类型:Promise<GetAccountDetailResult>
GetAccountDetailResult

引用对象

typeGetAccountDetailResult账号权益详情列表
AccountDetail[]

示例代码

请求示例

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

getAccountDetail({ ownerId: 'home_xxx' })
  .then(response => {
    console.log(response);
  })
  .catch(error => {
    console.error('账号权益详情失败:', error);
  });

返回示例

[{
  "type": "quota",
  "vasType": "transcribe",
  "totalQuantity": 100,
  "usedQuantity": 10,
  "leftQuantity": 90,
  "effectiveStartDate": 1710000000000,
  "effectiveEndDate": 1740000000000,
  "scope": "account",
  "deviceName": "",
  "externalCode": "xxx",
  "subscription": true
}]