+++
get:/msg/list?type=:type&access-token=:access-token
*:type=1#消息类型 1:评论点赞 2:留言回复 99:系统消息
*:access-token=92ece3ec585b1b0d433a98d7d8e93410#安全验证字符串
<<<
success
{
"success": true,
"data": {
"items": [
{
"m_id": "8",
"take_uid": "1", //接收者id
"send_uid": "1",//发送者id
"message": "",
"type": "1",
"url": "comment/list?content_id=1&catid=536&pid=1", //直接调用评论接口列表 可以查询评论和留言的详细列表信息
"time": "2016-10-21 10:35:05",
"isread": "0", //是否已读 0:未读 1:已读
"head_img": "http://www.lrb_api.com./uploads/head_img/1_58082c3272b50.jpg", //发送者头像
"username": "cuijun" //发送者账号
}
],
"_links": {
"self": {
"href": "http://www.lrb_api.com/v1/msg/list?type=1&page=1"
}
},
"_meta": {
"totalCount": "1",
"pageCount": 1,
"currentPage": 1,
"perPage": 20
}
}
}
<<<
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 |