首页File-X数据,查询最近更新的filex事件(event).
Request
HTTP request
GET https://www.featapi.com/api/feed/xfile-items/
Parameters
- Query parameters
Parameter name | Value | Description |
---|---|---|
Optional parameters | ||
page | string | |
page_size | string |
授权
此请求需要具有以下所有范围的授权:
Scopes |
---|
有关更多信息,请参阅认证和授权页面。
Request body
无
Response
如果成功,则此方法在响应正文中返回 Xfile.event 资源。
200 成功返回filex数据
{
"data": [
{
"id": 13,
"event_time": "2020-06-09",
"title": "喜欢游泳",
"content": "喜欢游泳",
"html_content": "<h1>喜欢游泳</h1>\n<p><strong>喜欢游泳</strong></p>",
"category": null,
"category_name": null,
"plates": [],
"create_time": "2020-06-09T10:42:56.657706Z",
"user": {
"uid": 6715983880802,
"avatar": "http://127.0.0.1:8000/media/6715983880802/avatar/6715983880802.jpg",
"expertise": "魔术",
"firstname": "淑珍",
"lastname": "杨",
"username": "淑珍 杨",
"timezone": "America/New_York",
"timezone_utc_offset": "-04:00",
"is_online": true,
"location": "New York",
"avatars": {
"path": "http://127.0.0.1:8000/media/6715983880802/avatar/6715983880802.jpg",
"sizes": {
"sm": {
"width": 32,
"height": 32,
"path": "http://127.0.0.1:8000/media/sm/6715983880802/avatar/6715983880802_32x32.JPEG"
},
"md": {
"width": 64,
"height": 64,
"path": "http://127.0.0.1:8000/media/md/6715983880802/avatar/6715983880802_64x64.JPEG"
},
"lg": {
"width": 300,
"height": 300,
"path": "http://127.0.0.1:8000/media/lg/6715983880802/avatar/6715983880802_300x300.JPEG"
}
}
}
},
"last_modified": "2020-06-09T10:57:29.155702Z",
"city": "七台河市",
"district": "桃山区",
"province": "黑龙江省",
"entity_type": "xfile",
"entity_id": 13
} ],
"pagination": {
"page_size": 1,
"total_count": 6,
"total_pages": 6,
"current_page": 1,
"next": 2,
"previous": null
}
}
404 Not found
示例返回数据可参考 API Common – Resource Not Found