评论通知接口
简要描述:
- pc用户发表评论,app被评论的用户收到通知消息
请求URL:
http://站点接口域名/openapi/notice/create-reply
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| list | 是 | object[] | 通知列表 |
list格式如下
[
{
"from": 4,
"from_username": "mono",
"to": 1,
"tid": 32,
"pid": 63,
"title": "titlelalllala",
"content": "hahhahhah",
"quote_uid": 0,
"anonymous": 0,
"from_avatar": ""
},
{
"from": 4,
"from_username": "mono",
"to": 1,
"tid": 32,
"pid": 64,
"title": "this is title",
"content": "hahahhahahah",
"quote_uid": 0,
"anonymous": 1,
"from_avatar": ""
}
]参数说明:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| from | 是 | int | 发送评论用户uid |
| from_username | 是 | string | 发送评论用户名 |
| to | 是 | int | 接收用户uid |
| tid | 是 | int | 帖子id |
| pid | 是 | int | 此条评论的id |
| title | 是 | string | 帖子标题 |
| content | 是 | string | 评论内容 |
| quote_uid | 是 | int | 0:回复的帖子,&0:引用回复,被引用回复的用户uid |
| anonymous | 否 | int | 此回复是否是匿名回复 1:匿名,0:不匿名 |
响应数据
{
"ret": 0,
"text": ""
}文档更新时间: 2022-11-11 15:24 作者:李伟