+++
post:/like/comment?access-token=:access-token
*int:content_id=1#文章id
*int:catid=536#文章分類id
*int:comment_id=1#評論d
: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 |
注意:
**access-token可以為空 但是為空的情況下無法判斷是否已點過贊 最好能在客戶端做判斷**