+++
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 |