复制 Markdown查看 MarkdowngetChannel(data: GetChannelParams)版本要求:@tuya-miniapp/cloud-api≥1.7.0描述获取 Agent 渠道编码参数参数类型必填说明›dataGetChannelParams是请求参数返回值类型:Promise<string>GetChannelResult示例代码请求示例import { getChannel } from '@tuya-miniapp/cloud-api'; getChannel({ objectId: 'xxx' }) .then(response => { console.log(response); }) .catch(error => { console.error('获取 Agent 渠道编码失败:', error); });返回示例"channel_code"上一页思维导图底部栏配置下一页获取用户偏好配置