我的 / 用户资料数据
请用 (https://yedoll.com/mobile_api/profile) 访问用户配置文件数据获取端点的API
Get 参数
参数 | 值 | 描述 |
---|---|---|
user_id | 用户个人资料 ID | 要获取有关配置文件的信息,必须发送有效的ID或用户名 |
username | 个人资料用户名 | 唯一的用户名。 例如: "mansur_tl" |
session_id | 用户身份验证令牌(可选) | 在这种情况下,不需要授权,但需要确定您是否订阅了此配置文件、是否被阻止,等等。 |
成功响应
{
"code": 200,
"message": "Profile fetched successfully",
"data":{
"id": 79,
"first_name": "rwefwe",
"last_name": "werwer",
"avatar": "https://yedoll.com/upload/avatars/2020/05/thumbnail_120x120.png",
"cover": "https://yedoll.com/upload/covers/2020/11/image_cover.jpg",
"user_name": "3324",
"email": "dan_kassings@gmail.com",
"is_verified": false,
"website": "",
"about_you": "",
"gender": "M",
"country": "United States",
"post_count": 0,
"about": "",
"ip_address": "127.0.0.1",
"following_count": 0,
"follower_count": 0,
"language": "english",
"last_active": "1601390105",
"profile_privacy": "everyone",
"member_since": "Sep 2020",
"is_blocked_visitor": false,
"is_following": false,
"can_view_profile": true
}
}
错误响应
{
"code": 400,
"message": "User ID is missing or invalid",
"data": []
}
{
"code": 400,
"message": "User ID is missing or invalid",
"data": []
}
获取个人资料帖子
请用 (https://yedoll.com/mobile_api/profile_posts) 用于访问获取端点的用户配置文件帖子的API
Get 参数
参数 | 值 | 描述 |
---|---|---|
user_id | 用户个人资料 ID | 要获取有关配置文件的信息,必须发送有效的ID |
type | 个人资料帖子类型(帖子/媒体/点赞) | 例如 `posts` 以获取用户帖子 |
session_id | 用户身份验证令牌(可选) | 在这种情况下,不需要授权,但需要确定您是否订阅了此配置文件、是否被阻止,等等。 |
offset | 帖子最后 offset ID | 这仅在加载分页系统的帖子时才需要 |
page_size | 每个请求的总帖子限制 | 推荐: 20 |
成功响应
{
"code": 200,
"message": "Posts fetched successfully",
"data": {
"posts": [
{
"id": 74,
"user_id": 7,
"text": "",
"type": "image",
"replys_count": "0",
"reposts_count": "0",
"likes_count": "1",
"status": "active",
"thread_id": 0,
"target": "publication",
"og_data": "",
"time": "2 minutes ago",
"offset_id": 82,
"is_repost": false,
"is_reposter": false,
"attrs": "",
"advertising": false,
"time_raw": "1605809671",
"og_text": "",
"og_image": "http://colibri.loc/upload/images/2020/11/FqDafAGzJSkbNHtWlzMZ_19_3ae1e109ba500931d882d2f10e521a31_image_original.jpg",
"url": "http://colibri.loc/thread/74",
"can_delete": false,
"media":[
{
"id": 52,
"pub_id": 74,
"type": "image",
"src": "upload/images/2020/11/FqDafAGzJSkbNHtWlzMZ_19_3ae1e109ba500931d882d2f10e521a31_image_original.jpg",
"json_data": "{\n \"image_thumb\": \"upload\\/images\\/2020\\/11\\/HM9AjSxebhwUM1xETCWq_19_3ae1e109ba500931d882d2f10e521a31_image_300x300.jpg\"\n}",
"time": "1605809668",
"x":{"image_thumb": "upload/images/2020/11/HM9AjSxebhwUM1xETCWq_19_3ae1e109ba500931d882d2f10e521a31_image_300x300.jpg"}
}
],
"is_owner": false,
"has_liked": false,
"has_saved": false,
"has_reposted": false,
"reply_to":[],
"owner":{"id": 7, "url": "http://colibri.loc/@dan_kassing", "avatar": "http://colibri.loc/upload/default/avatar.png",…}
},
{"id": 73, "user_id": 7, "text": "", "type": "image",…},
{"id": 72, "user_id": 7, "text": "how to get more twitter followers", "type": "text",…},
{"id": 7, "user_id": 7, "cover": "http://colibri.loc/upload/covers/2020/09/Y34uzzA8rsQCmhGOC5Qo_18_8cebe1d4683c6defe9fdc69cd94744bc_image_cover.jpg",…}
]
}
}
错误响应
{
"code": 400,
"message": "User ID is missing or invalid",
"data": []
}
{
"code": 400,
"message": "User ID is missing or invalid",
"data": []
}