ColibriSM - API
  • Get started
  • Login
  • Social login
  • Signup
  • Reset password
  • Timeline feed
  • Profile data (2)
  • Report profile
  • Block user
  • Notification token
  • Change password
  • Refresh access token
  • Logout user
  • Verify user
  • Post & Reply (4)
  • Vote polls
  • Create swift (7)
  • Thread data (2)
  • Like / Unlike
  • Report post
  • Repost post
  • Bookmarks (2)
  • Post likes
  • Delete post
  • Search hashtags
  • Search people
  • Search posts
  • Pin post to profile
  • Update profile data
  • Avatar & Cover (3)
  • User privacy (2)
  • Follow & Unfollow
  • Fetch following
  • Fetch followers
  • Follow requests (3)
  • Get notifications
  • Delete notifications
  • Messaging (6)
  • Delete account
  • Change language
Fetch data - 1 Fetch posts - 2

我的/用户资料数据

请使用此 (https://mariago.site/mobile_api/profile) API访问用户资料数据获取端点


GET参数

字段 值 说明
user_id 用户资料ID 为了获取资料信息,您必须发送有效的ID或用户名
username 用户资料用户名 唯一用户名。例如:"mansur_tl"
session_id 用户认证令牌(可选) 在这种情况下,不需要授权,但最好确定您是否订阅了此资料,是否被阻止等。

成功响应

{
        "code": 200,
        "message": "资料获取成功",
        "data":{
            "id": 79,
            "first_name": "rwefwe",
            "last_name": "werwer",
            "avatar": "https://mariago.site/upload/avatars/2020/05/thumbnail_120x120.png",
            "cover": "https://mariago.site/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": "用户ID缺失或无效",
        "data": []
    }

    {
        "code": 400,
        "message": "用户ID缺失或无效",
        "data": []
    }
    

获取用户资料帖子

请使用此 (https://mariago.site/mobile_api/profile_posts) API访问用户资料帖子获取端点


GET参数

字段 值 说明
user_id 用户资料ID 为了获取资料信息,您必须发送有效的ID
type 资料帖子类型 (posts/media/liked) 例如: `posts` 用于获取用户发布内容
session_id 用户认证令牌(可选) 在这种情况下,不需要授权,但最好确定您是否订阅了此资料,是否被阻止等。
offset 最后帖子偏移ID 仅在加载分页系统的帖子时需要。
page_size 每次请求的帖子总数限制 推荐: 20

成功响应

{
    "code": 200,
    "message": "帖子获取成功",
    "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": "用户ID缺失或无效",
    "data": []
}

{
    "code": 400,
    "message": "用户ID缺失或无效",
    "data": []
}