文档
测试

获取某个马甲的动态

GET
api/get/sockpuppet/post/list/{id}

接口描述

获取某个马甲的动态,{id}为马甲id

请求头

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

正确返回

``` { "code": 200, "message": "OK", "data": { "sockpuppet_info": { "id": 1, // 马甲id "name": "第88个马甲", // 马甲名 "avatar_url": "", // 头像 "platform": "",// 客户端 "background_url": "", //背景图片url "sign": "", // 签名 "created_at": "2022-10-19 12:16:43", "updated_at": "2022-10-20 02:32:59" }, // 马甲信息 "post": { "current_page": 1, "data": [ { "id": 1, // 动态id "content": "测试333~~~", // 动态内容 "sockpuppet_id": 1, //马甲id "platform": "", // 客户端 "image_url": null, // 图片地址,有图片的示例见id=4 "is_top": 1, // 是否置顶,0为不置顶 "publishtime": "公元前800年", // 发表时间 "tag_json": [ { "id": 2, "name": "陆景和" } ] // tag }, { "id": 2, "content": "今天很开心哦", "sockpuppet_id": 1, "platform": "", "image_url": null, "is_top": 0, "publishtime": "2022-10-19 14:39:13", "tag_json": null }, { "id": 3, "content": "今天很开心哦1245", "sockpuppet_id": 1, "platform": "", "image_url": null, "is_top": 0, "publishtime": "2022-10-19 14:39:20", "tag_json": null }, { "id": 4, "content": "今天很开心哦234567865432", "sockpuppet_id": 1, "platform": "iPhone 120 pro max", "image_url": [ "https://pic1.imgdb.cn/item/634fe3d704140bfcf5314383.jpg", "https://pic1.imgdb.cn/item/634fdafa03f071e1779e04ff.gif" ], "is_top": 0, "publishtime": "公元前8001年", "tag_json": null } ], "first_page_url": "http://friends.test/api/get/sockpuppet/post/list/1?page=1", // 第一页 "from": 1, "last_page": 1, // 最后一页的页码 "last_page_url": "http://friends.test/api/get/sockpuppet/post/list/1?page=1", // 最后一页的url "next_page_url": null, // 下一页的url "path": "http://friends.test/api/get/sockpuppet/post/list/1", "per_page": 50, // 每页多少 "prev_page_url": null, // 上一页url "to": 4, "total": 4 // 总共有多少条 }, "likeList": [ { "sockpuppet_id": 1, // 点赞的马甲id "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": [ 1 ], // 用户收藏的本页的动态的id列表 "comment": [ { "id": 2, // 评论id "post_id": 1, // 评论所属动态id "content": "第二条评论(更新)", // 评论内通 "image_url": null, // 图片列表 "publishtime": "公元前100年", // 发布时间 "author_like": 0, // 是否被作者喜欢 "platform": "公元前100年", // 客户端 "name": "第88个马甲", // 评论马甲的名 "sockpuppet_id": 1, //评论马甲的id "avatar_url": "" // 评论马甲的头像 } ] // 评论列表 "follow_count": 0, // 关注数量,缓存15分钟 "fans_count": 0 // 粉丝数量,缓存15分钟 } } ```

错误返回

``` { "code": 1006, "message": "马甲无法找到", "data": [] } ```