获取-用户阅读历史
GET
/v1_0/user/histories获取用户阅读历史
请求参数
Query 参数
page
string
当前页码数
示例值:
1
per_page
string
可选
当前页需要的数据条数(如果不传后台默认返回10个)
示例值:
10
Header 参数
Authorization
string
必需
Bearer token值, 示例: Bearer c250a975-f950-448d-a24e-772d2e9cbf0a
示例值:
{{Vue2_Geek_ACCESS_TOKEN}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
data
object
响应数据
page
integer
当前页码数
per_page
integer
当前页需要的数据条数
results
array [object {8}]
响应数据
total_count
integer
响应阅读历史数据总数
message
string
响应消息
示例
成功示例
{
"data": {
"page": 1,
"per_page": 10,
"results": [
{
"art_id": "252",
"title": "Angular Directive 详解",
"aut_id": "9adfc889-d9cb-4ca0-ad30-c6e8d095684a",
"comm_count": 12,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "老李",
"is_top": 0,
"cover": {
"type": 1,
"images": [
"http://geek.itheima.net/resources/images/60.jpg"
]
}
},
{
"art_id": "7928",
"title": "两段关于this的代码",
"aut_id": "9adfc889-d9cb-4ca0-ad30-c6e8d095684a",
"comm_count": 4,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "老李",
"is_top": 0,
"cover": {
"type": 0
}
},
{
"art_id": "64997",
"title": "",
"aut_id": "9adfc889-d9cb-4ca0-ad30-c6e8d095684a",
"comm_count": 0,
"pubdate": "",
"aut_name": "老李",
"is_top": 0,
"cover": {
"type": 0
}
},
{
"art_id": "6499",
"title": "使用Eclipse创建Maven项目",
"aut_id": "9adfc889-d9cb-4ca0-ad30-c6e8d095684a",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "老李",
"is_top": 0,
"cover": {
"type": 0
}
},
{
"art_id": "8125",
"title": "Vue组件开发实录:组件的三种调用方式",
"aut_id": "9adfc889-d9cb-4ca0-ad30-c6e8d095684a",
"comm_count": 1,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "老李",
"is_top": 0,
"cover": {
"type": 0
}
},
{
"art_id": "8017",
"title": "JAVA 从头开始<一>",
"aut_id": "9adfc889-d9cb-4ca0-ad30-c6e8d095684a",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "老李",
"is_top": 0,
"cover": {
"type": 0
}
},
{
"art_id": "8048",
"title": "详解动态规划01背包问题--JavaScript实现",
"aut_id": "9adfc889-d9cb-4ca0-ad30-c6e8d095684a",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "老李",
"is_top": 0,
"cover": {
"type": 0
}
},
{
"art_id": "7106",
"title": "微信小程序之如何使用自定义组件封装原生 image 组件",
"aut_id": "9adfc889-d9cb-4ca0-ad30-c6e8d095684a",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "老李",
"is_top": 0,
"cover": {
"type": 0
}
},
{
"art_id": "5402",
"title": "一步一步实现web程序信息管理系统之二----后台框架实现跳转登陆页面",
"aut_id": "9adfc889-d9cb-4ca0-ad30-c6e8d095684a",
"comm_count": 0,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "老李",
"is_top": 0,
"cover": {
"type": 0
}
},
{
"art_id": "7911",
"title": "Vue响应式----数据响应式原理",
"aut_id": "9adfc889-d9cb-4ca0-ad30-c6e8d095684a",
"comm_count": 1,
"pubdate": "2019-03-11 09:00:00",
"aut_name": "老李",
"is_top": 0,
"cover": {
"type": 0
}
}
],
"total_count": 17
},
"message": "OK"
}
最后修改时间: 3 年前