发布帖子
接口URL
请求方式
POST
Content-Type
json
请求Header参数
| 参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
|---|---|---|---|---|
| appid | bd9d01ecc75dbbaaefce | String | 是 | 网校唯一appid |
| token | eyj...Nj | String | 是 | 认证令牌 |
请求Body参数
json5
{
"bbs_id": 4,
"content": [{
"text":"第一个帖子",
"images":[
"http://...png",
// ...
]
}]
}字段描述
| 参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
|---|---|---|---|---|
| bbs_id | 4 | Integer | 是 | 社区ID |
| content | - | Array | 是 | 评论内容 |
| content.text | 第一个帖子 | String | 是 | 帖子内容 |
| content.images | ["http://...png"] | Array | 是 | 图片链接 |
成功响应示例
json5
{
"msg": "ok",
"data": {
"comment_count": 0,
"support_count": 0,
"is_top": 0,
"id": 4,
"school_id": 11,
"bbs_id": 4,
"content": "[{\"text\":\"第一个帖子\",\"images\":[\"http://...png\"]}]",
"user_id": 252,
"desc": "{\"text\":\"第一个帖子\",\"images\":[\"http://...png\"]}",
"updated_time": "2021-05-29T09:24:54.074Z",
"created_time": "2021-05-29T09:24:54.074Z",
"userId": 252
},
"code": 20000
}