文档中心 > API类目 > 迎客松牌照审核接口

yunos.tvpubadmin.device.yks.bots (获取设备列表)

获取设备列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
result BaseResult "retValue": [ { "name": "magicbox_X1", "id": 10, "class": "com.alibaba.ai.platform.biz.entity.SimpleBotInfo" }, ], "retCode": 1, "class": "com.alibaba.ai.platform.entity.BaseResult", "retMsg": "成功" } result
  • └ ret_code
  • Number
  • 1
  • 返回码
  • └ ret_msg
  • String
  • 服务不可用
  • 返回信息
  • ret_values
  • SimpleBotInfo []
  • [ { "name": "magicbox_X1", "id": 10, "class": "com.alibaba.ai.platform.biz.entity.SimpleBotInfo" }, ]
  • retValue
  • └ name
  • String
  • 梵高
  • 设备名称
  • └ id
  • Number
  • 123
  • 设备id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosTvpubadminDeviceYksBotsRequest req = new YunosTvpubadminDeviceYksBotsRequest();
YunosTvpubadminDeviceYksBotsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<yunos_tvpubadmin_device_yks_bots_response>
    <result>
        <ret_code>1</ret_code>
        <ret_msg>服务不可用</ret_msg>
        <ret_values>
            <simple_bot_info>
                <name>梵高</name>
                <id>123</id>
            </simple_bot_info>
        </ret_values>
    </result>
</yunos_tvpubadmin_device_yks_bots_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部