API說明
API位置 |
/new_ezding/members/comment_bookmark_list |
需求描述 |
取得會員收藏的會員評論清單,排序依bookmark時間最新到最舊排序 |
傳輸物件格式 |
json |
方法 |
GET |
範例
curl -X GET \
-H " X-Ftcsys-key: {KEY}" \
-H " X-Ftc-Authorization: {token}" \
-H " X- Accept-Language: {language}" \
-H "Content-Type: application/json" \
https:
回傳範例
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=UTF-8
{
"result": {
"total_pages": 10,
"total_records": 100,
"page": 1,
"list": [
{
"comment_id": 3,
"photo_url": "http://img.ezding.com.tw/photos/user_avatar/40288eb0050f542401050f54f5461de4/40288eb0050f542401050f54f5461de4.png",
"nickname": "有夠蝦",
"coment": "還不錯啊",
"bookmark_status": 1,
"bookmark_count": 55,
"created_time": 1487839688000
}
]
},
"code": 200,
"status": "success"
}
接收URL參數
參數 |
名稱 |
範例 |
必填 |
備註 |
bookmark_type |
收藏類型 |
0 |
N |
預設0,0:回傳所有類型,1:愛心(收藏) |
bookmark_status |
收藏狀態 |
1 |
N |
預設1,1:是、0:否 |
page |
頁碼 |
1 |
N |
|
page_size |
每頁傳回資料筆數 |
10 |
N |
回傳json的參數
參數 |
名稱 |
範例 |
必填 |
備註 |
total_pages |
總頁數 |
10 |
Y |
|
total_records |
結果筆數 |
100 |
Y |
|
page |
頁碼 |
1 |
Y |
|
list |
評分評論清單 |
|
Y |
|
comment_id |
評論ID |
2 |
Y |
|
photo_url |
會員頭像 |
http://member_center.fullerton.com.tw/ member/images/40288eb0050f542401050f54d74c0003.jpg |
Y |
|
nickname |
使用者暱稱 |
00001 |
Y |
|
score |
會員評分 |
4.5 |
N |
若評論類型為站台內容,score給null |
comment |
評論內容 |
很好喔 |
Y |
|
bookmark_status |
是否收藏狀態 |
1 |
N |
1:是、0:否,未登入時皆為否 |
bookmark_count |
被收藏數 |
10 |
Y |
|
created_time |
建立時間 |
1487839688000 |
Y |