文档
测试

获取所有动态

GET
/api/all/post

接口描述

获取所有动态,字段释义请见【分组】->【获取分组动态】,返回的内容跟【获取分组动态】是一样的

请求头

参数名
类型
描述
必填
token
string
必填

正确返回

``` { "code": 200, "message": "OK", "data": { "post": { "current_page": 1, "data": [ { "id": 5, "content": "今天很开心哦", "sockpuppet_id": 4, "platform": "", "image_url": null, "is_top": 0, "publishtime": "2022-10-20 05:41:58", "tag_json": null, "name": "第四个马甲", "avatar_url": "" }, { "id": 4, "content": "测试333~~~", "sockpuppet_id": 1, "platform": "", "image_url": null, "is_top": 0, "publishtime": "", "tag_json": null, "name": "第88个马甲", "avatar_url": "" }, { "id": 3, "content": "今天很开心哦1245", "sockpuppet_id": 2, "platform": "", "image_url": null, "is_top": 0, "publishtime": "2022-10-19 14:39:20", "tag_json": null, "name": "第二个马甲", "avatar_url": "" }, { "id": 2, "content": "今天很开心哦", "sockpuppet_id": 1, "platform": "", "image_url": null, "is_top": 1, "publishtime": "2022-10-19 14:39:13", "tag_json": null, "name": "第88个马甲", "avatar_url": "" }, { "id": 1, "content": "测试333~~~", "sockpuppet_id": 1, "platform": "", "image_url": null, "is_top": 0, "publishtime": "", "tag_json": [ { "id": 2, "name": "陆景和" } ], "name": "第88个马甲", "avatar_url": "" } ], "first_page_url": "http://friends.test/api/all/post?page=1", "from": 1, "last_page": 1, "last_page_url": "http://friends.test/api/all/post?page=1", "next_page_url": null, "path": "http://friends.test/api/all/post", "per_page": 50, "prev_page_url": null, "to": 5, "total": 5 }, "likeList": [ { "sockpuppet_id": 1, "name": "第88个马甲", "avatar_url": "", "post_id": 3 }, { "sockpuppet_id": 2, "name": "第二个马甲", "avatar_url": "", "post_id": 2 }, { "sockpuppet_id": 3, "name": "第三个马甲", "avatar_url": "", "post_id": 1 }, { "sockpuppet_id": 3, "name": "第三个马甲", "avatar_url": "", "post_id": 2 } ], "collect": [ 4 ], "comment": [ { "id": 2, "post_id": 1, "content": "第二条评论(更新)", "image_url": null, "publishtime": "公元前100年", "author_like": 0, "platform": "公元前100年", "name": "第88个马甲", "sockpuppet_id": 1, "avatar_url": "" } ] } } ```

错误返回

`null`