#### 新平台机器人新建接口 接口名: http://aliyun-hz1.chewrobot.com:8081/condition METHOD: POST Headers: | key | value| | :----------- | :------------ | | Content-Type | application/json;charset=utf-8| | Authorization | Bearer YOUR_ACCESS_TOKEN| URL Parameters: |参数名 | 数据类型 | 描述| SendWay | | :----------- | :------: | :------------ | :------- | | type | string | 默认为"bot_init" | JSON | | bot_type | string | bot类型 | JSON | | userName | string | 用户名 | JSON | | botName_yhm | string | bot的名字 | JSON | | catName | string | bot类别名 | JSON | | botId | string | 默认为"undefined" | JSON | responseBody: ``` { "status": 状态码, 成功时为1, 失败为0 "parameter": 如果状态为0,paramters为失败原因, 如果状态是1,parameter为{"botId":int, botAccount:""} } ``` #### 新平台机器人添加condition 接口名: http://aliyun-hz1.chewrobot.com:8081/condition METHOD: POST Headers: | key | value| | :----------- | :------------ | | Content-Type | application/json;charset=utf-8| | Authorization | Bearer YOUR_ACCESS_TOKEN| URL Parameters: |参数名 | 数据类型 | 描述| SendWay | | :----------- | :------: | :------------ | :------- | | type | string | 默认为"insert_condition" | JSON | | conditionData | JSONArray | condition数据 | JSON | | botName_yhm | string | bot的名字 | JSON | | catName | string | bot类别名 | JSON | | botId | string | 默认为"undefined" | JSON | responseBody: ``` { "status": 状态码, 成功时为1, 失败为0 "parameter": 如果状态为0,paramters为失败原因 } ``` #### 新平台机器人更新condition 接口名: http://aliyun-hz1.chewrobot.com:8081/condition METHOD: POST Headers: | key | value| | :----------- | :------------ | | Content-Type | application/json;charset=utf-8| | Authorization | Bearer YOUR_ACCESS_TOKEN| URL Parameters: |参数名 | 数据类型 | 描述| SendWay | | :----------- | :------: | :------------ | :------- | | type | string | 默认为"update_condition" | JSON | | conditionId | int | conditionId | JSON | | conditionData | JSONArray | condition数据 | JSON | | botName_yhm | string | bot的名字 | JSON | | catName | string | bot类别名 | JSON | | botId | string | 默认为"undefined" | JSON | responseBody: ``` { "status": 状态码, 成功时为1, 失败为0 "parameter": 如果状态为0,paramters为失败原因 } ``` #### 新平台机器人查询condition 接口名: http://aliyun-hz1.chewrobot.com:8081/condition METHOD: POST Headers: | key | value| | :----------- | :------------ | | Content-Type | application/json;charset=utf-8| | Authorization | Bearer YOUR_ACCESS_TOKEN| URL Parameters: |参数名 | 数据类型 | 描述| SendWay | | :----------- | :------: | :------------ | :------- | | type | string | 默认为"query_condition" | JSON | | queryType | String | 查询类型:all/category | JSON | | botId | string | 默认为"undefined" | JSON | responseBody: ``` { "status": 状态码, 成功时为1, 失败为0 "parameter": 如果状态为0,paramters为失败原因, 如果状态为1,则返回condition列表 } ``` #### 新平台机器人更新初始问题 接口名: http://aliyun-hz1.chewrobot.com:8081/condition METHOD: POST Headers: | key | value| | :----------- | :------------ | | Content-Type | application/json;charset=utf-8| | Authorization | Bearer YOUR_ACCESS_TOKEN| URL Parameters: |参数名 | 数据类型 | 描述| SendWay | | :----------- | :------: | :------------ | :------- | | type | string | 默认为"change_active" | JSON | | activeConditionId | int | 设为初始问题的conditionId | JSON | | botId | string | 默认为"undefined" | JSON | | botName_yhm | string | bot的名字 | JSON | | catName | string | bot类别名 | JSON | responseBody: ``` { "status": 状态码, 成功时为1, 失败为0 "parameter": 如果状态为0,paramters为失败原因 } ``` #### 新平台机器人删除condition 接口名: http://aliyun-hz1.chewrobot.com:8081/condition METHOD: POST Headers: | key | value| | :----------- | :------------ | | Content-Type | application/json;charset=utf-8| | Authorization | Bearer YOUR_ACCESS_TOKEN| URL Parameters: |参数名 | 数据类型 | 描述| SendWay | | :----------- | :------: | :------------ | :------- | | type | string | 默认为"delete_condition" | JSON | | conditionId | int | conditionId | JSON | | botId | int | botId | JSON | responseBody: ``` { "status": 状态码, 成功时为1, 失败为0 "parameter": 如果状态为0,paramters为失败原因 } ``` #### 新平台机器人更新condition名字 接口名: http://aliyun-hz1.chewrobot.com:8081/condition METHOD: POST Headers: | key | value| | :----------- | :------------ | | Content-Type | application/json;charset=utf-8| | Authorization | Bearer YOUR_ACCESS_TOKEN| URL Parameters: |参数名 | 数据类型 | 描述| SendWay | | :----------- | :------: | :------------ | :------- | | type | string | 默认为"update_condition_name" | JSON | | conditionId | int | conditionId | JSON | | botId | int | botId | JSON | | conditionName | string | 新的condition名字 | JSON | | botName_yhm | string | bot的名字 | JSON | | catName | string | bot类别名 | JSON | #### 新平台机器人更新机器人结束语 接口名: http://aliyun-hz1.chewrobot.com:8081/condition METHOD: POST Headers: | key | value| | :----------- | :------------ | | Content-Type | application/json;charset=utf-8| | Authorization | Bearer YOUR_ACCESS_TOKEN| URL Parameters: |参数名 | 数据类型 | 描述| SendWay | | :----------- | :------: | :------------ | :------- | | type | string | 默认为"update_goodbye" | JSON | | botId | int | botId | JSON | | sayGoodBye | string | 新的结束语 | JSON | responseBody: ``` { "status": 状态码, 成功时为1, 失败为0 "parameter": 如果状态为0,paramter为失败原因 } ``` #### 新平台机器人更新condition显示顺序 接口名: http://aliyun-hz1.chewrobot.com:8081/condition METHOD: POST Headers: | key | value| | :----------- | :------------ | | Content-Type | application/json;charset=utf-8| | Authorization | Bearer YOUR_ACCESS_TOKEN| URL Parameters: |参数名 | 数据类型 | 描述| SendWay | | :----------- | :------: | :------------ | :------- | | type | string | 默认为"update_condition_display_order" | JSON | | botId | int | botId | JSON | | conditionId | int | conditionId | JSON | | order | int | 顺序(默认是999) | JSON | responseBody: ``` { "status": 状态码, 成功时为1, 失败为0 "parameter": 如果状态为0,paramter为失败原因 } ``` #### 新平台机器人更新bot信息 接口名: http://aliyun-hz1.chewrobot.com:8081/condition METHOD: POST Headers: | key | value| | :----------- | :------------ | | Content-Type | application/json;charset=utf-8| | Authorization | Bearer YOUR_ACCESS_TOKEN| URL Parameters: |参数名 | 数据类型 | 描述| SendWay | | :----------- | :------: | :------------ | :------- | | type | string | 默认为"update_bot_info" | JSON | | botId | int | botId | JSON | | botName_yhm | string | bot的名字 | JSON | | catName | string | bot类别名 | JSON | | option | string | 要更新的字段 | JSON | | value | string | 要更新的值 | JSON | responseBody: ``` { "status": 状态码, 成功时为1, 失败为0 "parameter": 如果状态为0,paramter为失败原因 } ``` #### 查询待激活的配置文件 接口名: http://aliyun-hz1.chewrobot.com:8081/condition METHOD: POST Headers: | key | value| | :----------- | :------------ | | Content-Type | application/json;charset=utf-8| | Authorization | Bearer YOUR_ACCESS_TOKEN| URL Parameters: |参数名 | 数据类型 | 描述| SendWay | | :----------- | :------: | :------------ | :------- | | type | string | 默认为"query_sleeping_config" | JSON | | botId | int | botId | JSON | responseBody: ``` { "status": 状态码, 成功时为1, 失败为0 "parameter": 如果状态为1,paramters为[[configId, configName]] } ```