返回指定用户创建的事件列表。
Request
HTTP request
GET https://www.featapi.com/api/xfile/event/{uid}/view-list/
Parameters
- Path parameters
Parameter name | Value | Description |
---|---|---|
uid | string | 用户uid |
- Query parameters
Parameter name | Value | Description |
---|---|---|
Optional parameters | ||
page | string | page number |
page_size | string | page size |
ordering | string | 排序,ordering=event_time,create_time,详见排序规则 |
授权
此请求需要具有以下所有范围的授权:
Scopes |
---|
xfile_event |
有关更多信息,请参阅认证和授权页面。
Request body
无
Response
如果成功,则此方法在响应正文中返回 Xfile.event 资源。
200 成功返回
{
"data": [
{
"id": 1162,
"event_time": "2020-03-19",
"title": "这是Event标题",
"content": "这是Event正文内容",
"html_content": "<h1>这是Event标题</h1>\n<p>这是Event正文内容</p>",
"category": null,
"category_name": null,
"plates": [],
"view_permission": 200,
"create_time": "2020-03-19T07:26:31.336392Z",
"last_modified": "2020-03-19T07:26:31.345915Z",
"status": 100,
"comment_count": 0,
"like_count": 0,
"the_moment": [
{
"id": 1157,
"event_time": "2020-03-19",
"title": "【待处理】测试维基百科当年今日验收",
"content": "feat.com \nFile-X \"Place Around'\n语言: en\n用户+86 8888882 密码user-2 发布了一个2016年10月17日的filex,Place Around匹配维基百科----Failed\nhttps://www.featapi.com/profile/6816432169406/file-x\n**备注**维基百科上查到2016年10月17日是有当年今日的。\nhttps://en.wikipedia.org/wiki/Portal:Current_events/2016_October_17",
"html_content": "<h1><strong>【待处理】测试维基百科当年今日验收</strong></h1>\n<ul>\n<li>feat.com </li>\n<li>File-X \"Place Around'</li>\n<li>语言: en</li>\n</ul>\n<p><strong>用户+86 8888882 密码user-2 发布了一个2016年10月17日的filex,Place Around匹配维基百科----Failed</strong></p>\n<p>https://www.featapi.com/profile/6816432169406/file-x</p>\n<p><strong>**备注**维基百科上查到2016年10月17日是有当年今日的。</strong></p>\n<p>https://en.wikipedia.org/wiki/Portal:Current_events/2016_October_17</p>\n<p><br/></p>",
"category": null,
"category_name": null,
"plates": [
{
"id": 207,
"user": 6716683642045,
"user_name": "周 凤俏",
"photo": "https://pic1.feat.com/media/6716683642045/xfile/plate/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7_2020-03-19_%E4%B8%8B%E5%8D%882.21.23.png",
"create_time": "2020-03-19T06:52:22.871677Z"
},
{
"id": 208,
"user": 6716683642045,
"user_name": "周 凤俏",
"photo": "https://pic1.feat.com/media/6716683642045/xfile/plate/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7_2020-03-19_%E4%B8%8B%E5%8D%882.49.29.png",
"create_time": "2020-03-19T06:52:27.301071Z"
}],
"create_time": "2020-03-19T06:14:02.901563Z",
"user": {
"uid": 6716683642045,
"avatar": "https://pic1.feat.com/media/6716683642045/avatar/blob_HlyCfkC",
"expertise": "聊天",
"firstname": "凤俏",
"lastname": "周",
"username": "周 凤俏",
"timezone": "Asia/Shanghai",
"timezone_utc_offset": "+08:00",
"online": false,
"location": "CHN",
"avatars": {
"path": "https://pic1.feat.com/media/6716683642045/avatar/blob_HlyCfkC",
"sizes": {
"sm": {
"width": 32,
"height": 32,
"path": "https://pic1.feat.com/media/sm/6716683642045/avatar/blob_HlyCfkC_32x32.JPEG"
},
"md": {
"width": 64,
"height": 64,
"path": "https://pic1.feat.com/media/md/6716683642045/avatar/blob_HlyCfkC_64x64.JPEG"
},
"lg": {
"width": 300,
"height": 300,
"path": "https://pic1.feat.com/media/lg/6716683642045/avatar/blob_HlyCfkC_300x300.JPEG"
}
}
}
},
"last_modified": "2020-03-19T06:56:41.297912Z",
"city": "广州",
"district": "增城",
"province": "广东"
}],
"place_around": [
{
"site_name": "IFeng",
"url": "https://news.ifeng.com/c/7uxd9jPSp5k",
"title": "世卫总干事:中国第一次疫苗试验已开始 这是令人难以置信的成就",
"release_date": "2020-03-19",
"html_content": "【环球网报道 记者 侯佳欣】“如你们所知,在中国分享病毒基因序列60天后,第一次疫苗试验已经开始。这是一项令人难以置信的成就。”世界卫生组织(WHO)总干事谭德塞18日在世卫组织有关新冠肺炎的例行记者会上这样说。",
"city": "",
"category": "国际",
"site_logo": "/media/news_sites_logo/ifeng_logo.ico",
"district": "",
"province": "",
"country": null
}],
"user": {
"uid": 7116432170097,
"avatar": "https://pic1.feat.com/media/7116432170097/avatar/7116432170097.jpg",
"expertise": "大学新生咨询",
"firstname": "军",
"lastname": "蒙",
"username": "军 蒙",
"timezone": "Asia/Shanghai",
"timezone_utc_offset": "+08:00",
"online": false,
"location": "CHN",
"avatars": {
"path": "https://pic1.feat.com/media/7116432170097/avatar/7116432170097.jpg",
"sizes": {
"sm": {
"width": 32,
"height": 32,
"path": "https://pic1.feat.com/media/sm/7116432170097/avatar/7116432170097_32x32.JPEG"
},
"md": {
"width": 64,
"height": 64,
"path": "https://pic1.feat.com/media/md/7116432170097/avatar/7116432170097_64x64.JPEG"
},
"lg": {
"width": 300,
"height": 300,
"path": "https://pic1.feat.com/media/lg/7116432170097/avatar/7116432170097_300x300.JPEG"
}
}
}
},
"city": "天津市",
"district": "滨海新区",
"province": "天津市",
"comments": []
}],
"pagination": {
"page_size": 20,
"total_count": 5,
"total_pages": 1,
"current_page": 1,
"next": null,
"previous": null
}
}
404 Not found
示例返回数据可参考 API Common – Resource Not Found