# 商户获取指定机器人客户端版本列表

请求方式:POST

请求地址:https://$basehost/gateway/qopen/GetRobotVersion

body参数

{
    "robot_id_list": ["robot_id1", "robot_id2"]
}
字段 类型 必填 说明
robot_id_list array 查询指定机器人id

返回值:

{
   "data": {
      "list": [
         {
            "robot_id": "robot_id1",
            "version": "1.1.0"
         },
        {
          "robot_id": "robot_id2",
          "version": "1.1.3"
        }
      ]
   },
   "errcode": 0,
   "errmsg": "",
   "hint": ""
}

返回说明

字段 类型 说明
data json json返回值
data.list array 绑定关系列表
data.list[x].robot_id string 机器人id,可能为空
data.list[x].version string 机器人当前客户端版本号
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
hint string 请求日志ID

完整请求示例:

curl -X POST \
  https://$basehost/gateway/eaopen/GetRobotVersion \
  -H 'Content-Type: application/json; charset=UTF-8' \
  -H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
  -d '{
    "robot_id_list": ["robot_id1", "robot_id2"]
}'

最后更新时间: 2023/5/24 10:48:59