+++
post:/comment?access-token=:access-token
*int:content_id=1#文章id
*int:catid=536#文章分类id
*string:content=好评#评论内容 最多300个汉字
*int:pid=0# 0为针对文章评论 否则为评论id 表示回复评论的id
*:access-token=92ece3ec585b1b0d433a98d7d8e93410#安全验证字符串
<<<
success
{
"success": true,
"data": {
"message": "评论成功!"
}
}
<<<
error
{
"success": false,
"data": {
"name": "Unauthorized",
"message": "access-token是一个无效的凭证.",
"code": 0,
"status": 401,
"type": "yii\\web\\UnauthorizedHttpException"
}
}
+++
### header头信息:
| 参数名 | 参数值 |
| --- | --- |
| Accept | application/json |
| DeviceId | 310995000000000|
| Sign | e67ce2f83ca715552c7040c6801e020f |