4.评论回复接口

### 接口路径:https://dev.lingju.ai/httpApi/commentChat.do |名称|评论回复接口| |-|-| |接口路径|https://dev.lingju.ai/httpApi/commentChat.do| |请求方式|post| </br> ### http post请求示例: ~~~ post https://dev.lingju.ai/httpApi/commentChat.do json格式串行化post上传,注意请求的header需添加 'Content-Type':'application/json;charset=UTF-8' { "appkey":"xxxxxxxxxxxxxxxxxxxxxx", "authcode":"xxxxxxxxxxxxxxxxxxxxxx", "userid":"xxxxxxxxxxxxxxxxxxxxxx", "data": [{ "name":"xxxxxx", "comment":"xxxxxx" }, { "name":"xxxxxx", "comment":"xxxxxx" }] } ~~~ </br> ### 请求参数说明: <table style="width:100%"> <thead> <tr height="28" > <th height="28" width="130px">参数</th> <th width="100px">数据类型</th> <th width="100px">可需</th> <th colspan="2">描述</th> </tr> </thead> <tbody> <tr height="23"> <td height="23" >appkey</td> <td>String</td> <td>必填</td> <td colspan="2">分配给开发者的专属appkey,请妥善保管</td> </tr> <tr height="23"> <td height="23" >userid</td> <td >String</td> <td>必填</td> <td colspan="2">用户的userid</td> </tr> <tr height="23"> <td height="23" >authcode</td> <td >String</td> <td>必填</td> <td colspan="2">给终端设备分配的授权码,由开发者自行管理</td> </tr> <tr > <td rowspan="3" >data</td> <td rowspan="3" >list</td> <td rowspan="3" >必填</td> <td colspan="2">评论集合</td> </tr> <tr > <td width="50px">name</td> <td>评论用户名称</td> </tr> <tr > <td width="50px">comment</td> <td>评论内容</td> </tr> </tbody></table> </br> ### 接口返回JSON示例: ~~~ { "status": 0 , "userid":"xxxxxxxxxxxxxxxxxxxxxx", "content": [{ "name":"xxxxxxxxxxxxxxxxxxxxxx", "comment":"xxxxxxxxxxxxxxxxxxxxxx", "answer":"xxxxxxxxxxxxxxxxxxxxxx" }, { "name":"xxxxxxxxxxxxxxxxxxxxxx", "comment":"xxxxxxxxxxxxxxxxxxxxxx", "answer":"xxxxxxxxxxxxxxxxxxxxxx" }] } ~~~ </br> ### 接口返回说明: ~~~ Content-Type:application/json;charset=UTF-8 ~~~ <table style="width:100%"> <thead> <tr height="28" > <th height="28" width="130px">属性名</th> <th width="100px">数据类型</th> <th colspan="2">描述</th> </tr> </thead> <tbody> <tr height="23"> <td height="23" >status</td> <td>int</td> <td colspan="2">状态码,0=成功,表示收到弹幕、评论信息正在处理中,其它值则为错误码,请参考错误码表</td> </tr> <tr height="23"> <td height="23" >description</td> <td >String</td> <td colspan="2">通常为空,出错时会有错误信息</td> </tr> <tr > <td rowspan="4" >content</td> <td rowspan="4" >list</td> <td colspan="2">弹幕、评论集合</td> </tr> <tr > <td width="50px">name</td> <td>评论、用户名称</td> </tr> <tr > <td width="50px">comment</td> <td>用户评论内容文本</td> </tr> <tr > <td width="50px">answer</td> <td>灵聚回复文本(格式与‘聊天对话控制接口’中的answer一致)</td> </tr> </tbody></table> </br> ### 错误码表: |错误码|描述| |-|-| |0|成功| |-1|系统异常| |1|其它错误| |4|开发者帐号错误,账户未完成认证或已被禁用| |6|APPKEY无效| |7|model错误| |8|参数错误| |9|已经是最新版本| |10|重复操作| |11|授权码无效| |12|激活码重置过于频繁| |13|体验版授权码已过期| |14|激活失败,请重试| |15|连接中禁止切换用户| |16|终端未激活| |17|激活码已过期,请重置| |18|激活码无效| |19|会话过期| |20-29|数据格式校验错误| |40|并发过高导致请求失败| |41|每次调用次数已达上限| |42|目标对象未同步,请先通过update接口更新后重试| |43|应用无效,已被限制使用| |44|应用无效,已废弃| |45|目标对象数量已达上限| |97|校验失败| |98|重复登录| |99|未登录| |111|参数错误| |114|帐号未认证| |120|账号已被禁用| |121|授权限额已满| |122|accessToken已过期| |123|没有调用http接口的权限| |124|系统应答超时| |129|应用已被限制| |989|该用户APPKEY非法| |990|总调用次数已达上限,请联系技术人员处理| |991|该终端用户不存在| |992|accessToken无效| |993|对话量异常,机器人需要休息一会,稍后再试| |996|对话太频繁了,暂时被禁用,稍后再试|