评论通知
简要描述:
- pc用户发表评论,app被评论的用户收到通知消息
请求URL:
http://{hostname}.qianfanapi.com/api1_2/thread/reply
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| reply | 是 | jsonString | 评论数据数组组成的json ,例如 |
reply由以下数据数组组成json,示例如下
[
{
"from": 4,
"from_username": "mono",
"to": 1,
"tid": 32,
"pid": 63,
"title": "titlelalllala",
"content": "hahhahhah",
"quote_uid": 0
},
{
"from": 4,
"from_username": "mono",
"to": 1,
"tid": 32,
"pid": 64,
"title": "this is title",
"content": "hahahhahahah",
"quote_uid": 0
}
]reply参数说明:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| 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 |
帖子点赞通知
简要描述:
- pc用户点赞帖子,app被点赞的帖子作者收到通知消息
请求URL:
http://{hostname}.qianfanapi.com/api1_2/thread/like
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| from | 是 | int | 点赞帖子用户uid |
| to | 是 | int | 接收用户uid |
| tid | 是 | int | 帖子id |
| title | 是 | string | 帖子标题 |
评论点赞通知
简要描述:
- pc用户点赞帖子里的评论,app被点赞的评论作者收到通知消息
请求URL:
http://{hostname}.qianfanapi.com/api1_2/thread/ping-like
请求方式:
- POST
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| from | 是 | int | 发送点赞用户uid |
| to | 是 | int | 接收用户uid |
| tid | 是 | int | 帖子id |
| pid | 是 | int | 此条评论的id |
| title | 是 | string | 被点赞的评论内容 |
| content | 是 | string | 被点赞的帖子标题 |
文档更新时间: 2019-11-01 11:13 作者:漫漫