根据文章的发布时间、阅读记录等进行文章推荐。
已登录用户访问此接口时,返回结果会结合当前用户的历史阅读情况(如有)进行推荐。
Request
HTTP request
GET https://www.featapi.com/api/dimzou/recommend/
Headers
X-Language-Locale 推荐文章的语言。默认为en。
Authorization 如用户已登录则必填。
Parameters
Name | Type | Optional | Descriptions | Notes |
---|---|---|---|---|
view_time | datetime? | optional | 用户本次访问推荐文章的起始时间。 | 用户在此时间之前访问过出版物的文章会被排除。(访问过出版物指访问了/api/dimzou/publication/ 接口)仅登录用户可用。 如果没有此参数则不排除文章。 |
支持Pagination相关参数。
Response
200 Pagination Response
返回一系列的Dimzou.bundle资源。
{
"pagination": {
"page_size": 1,
"total_count": 6301,
"total_pages": 6301,
"current_page": 1,
"next": 2,
"previous": null
},
"data": [
{
"template_config": {
"cover_template": "I",
"chapter_template": "I"
},
"permission": 0,
"id": 625053,
"type": 0,
"status": 200,
"is_multi_chapter": false,
"category": {
"id": 4,
"name": "History & Culture",
"parent_id": 2,
"kind": "category",
"slug": "history-culture",
"approved_at": "2019-07-17T06:29:34Z",
"created_at": "2019-05-08T06:29:32Z",
"deleted_at": null,
"level": 3
},
"title": "粤语本字“一缗”(一元的意思)",
"summary": "一缗即“一吊钱”,与清末民初时的一银元价值很接近,久而久之,“一缗”成为了一元的代名词,从而“缗”等于“元”。",
"create_time": "2022-02-17T01:12:22.939623Z",
"last_modified": "2022-02-17T01:13:02.704878Z",
"publish_version": null,
"publish_time": "2022-02-17T01:14:03.329409Z",
"delete_time": null,
"language": "zh-CN",
"user_id": 1924327631626,
"cover_image": null,
"kind": "dimzou_bundle",
"cover_images": null,
"apply_scenes": [
"粤语、古汉语",
"粤语本字",
"广府文化"
],
"sn": "CN220217-0000002",
"copy_version": 1,
"draft_version": 1,
"first_original": 625052
}
]
}