Commit 4f11bddf03aa3e3fead365eda797e98f8c555a1e
1 parent
9c05186d
update
Showing
1 changed file
with
25 additions
and
15 deletions
09.审核云/1.8 评论审核.md
| 1 | +### 评论审核 | |
| 2 | + | |
| 3 | +### 请求地址:http://shenhe.cnlive.com/api/comments/import | |
| 4 | + | |
| 1 | 5 | #### 请求参数说明: |
| 2 | 6 | | 参数名 | 参数类型 | 必选 | 参数说明 | |
| 3 | 7 | | :-----------: | :------: | :------: | :------: | |
| 4 | 8 | | appId | String | true | 应用ID | |
| 5 | -| videoId| String | false | 点播视频ID | | |
| 6 | -| videoTitle| String | true | 点播视频名称 | | |
| 7 | -| videoUrl | String | true | 点播视频url | | |
| 8 | -| uploadTime | date | true | 上传时间 | | |
| 9 | -| uploadPerson | String | true | 上传人 | | |
| 10 | -| priority | int | true | 默认优先级 | | |
| 11 | -| videoCoverUrl | String | true | 封面图 | | |
| 9 | +| programId| String | true | 节目ID。 | | |
| 10 | +| originalUrl| String | true | 节目原文链接 | | |
| 11 | +| commentTitle | String | true | 节目原文标题 | | |
| 12 | +| commentUserId | string | true | 用户ID | | |
| 13 | +| commentUserName | String | false | 用户昵称 | | |
| 14 | +| commentUserAvatar | string | false | 用户头像URL | | |
| 15 | +| commentUserIP | String | false | 用户来源IP地址 | | |
| 16 | +| commentContent | String | true | 评论内容 | | |
| 17 | +| commentTime | String | true | 评论时间 | | |
| 18 | +| platform | String | false | 终端平台(手机端,pc端等) (i/a/w) <br/> I: IOS <br/> a:安卓 <br/> w:网页 | | |
| 19 | +| priority | String | false | 优先级 <br/> 1--热点,优先级高 <br/>0--非热点,优先级低(默认) | | |
| 12 | 20 | | callback | String | true | 回调函数 | |
| 13 | -| videoIntro | String | true | 点播描述 | | |
| 14 | -| videoTag | String | true | 点播标签 | | |
| 15 | -| videoKeyword | String | true | 点播关键字 | | |
| 21 | +| activityId | String | true | 评论唯一标识,构成:(003_002:video:comets:284486#12321)(appId:video:comets: programId#commentId) | | |
| 22 | +| timestamp | int | true | 精确到秒,当前Unix时间戳,请保证请求服务器时间正确 | | |
| 23 | +| sign | String | true | 签名规则见<a href="http://bj.gitlab.cnlive.com/OPEN-API/WIKI/blob/master/00.%E5%85%AC%E5%85%B1%E7%BB%84%E4%BB%B6/1.1%20SHA1%E7%AD%BE%E5%90%8D.md">签名详情</a> | | |
| 24 | + | |
| 16 | 25 | ----- |
| 17 | 26 | #### 返回格式说明: |
| 18 | 27 | ``` |
| ... | ... | @@ -20,8 +29,9 @@ |
| 20 | 29 | "errorCode": "0", |
| 21 | 30 | "errorMessage": "成功" |
| 22 | 31 | } |
| 23 | -{ | |
| 24 | - "errorCode": "1", | |
| 25 | - "errorMessage": "请求参数无效" | |
| 26 | -} | |
| 27 | -``` | |
| 28 | 32 | \ No newline at end of file |
| 33 | +``` | |
| 34 | +错误码 | |
| 35 | + * 1000+* 03 评论报错信息 * 标识出错的区别 | |
| 36 | + * 1000003 '取列表所有数据出错,请重试!', | |
| 37 | + * 1000103 '评论唯一标识id不存在,请重试!’ | |
| 38 | + * 1000203 'spId不存在,请重试!' | |
| 29 | 39 | \ No newline at end of file | ... | ... |