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
获取书签 - 1 添加书签 - 2

获取书签

请使用此 (https://mariago.site/mobile_api/get_bookmarks) API访问获取用户书签端点


GET参数

字段 值 说明
session_id 访问令牌ID 例如: de25cc16eb00960f076...
page_size 每次请求的帖子总数限制 推荐值:20
offset 最后帖子偏移ID 仅在加载分页系统的帖子时需要。

成功响应

{
        "code": 200,
        "message": "书签获取成功",
        "data":[
            {"id": 36, "user_id": 7, "text": "retw", "type": "text", "replys_count": "1",…},
            {"id": 38, "user_id": 7, "text": "ert", "type": "text",…},
            {"id": 39, "user_id": 7, "text": "ert", "type": "text",…},
            {"id": 40, "user_id": 7, "text": "erter", "type": "text",…}
        ]
    }
    

错误响应

{
        "code": 401,
        "data": [],
        "message": "未授权访问"
    }

    {
        "code": 204,
        "message": "未找到数据",
        "data": []
    }
    

添加书签/取消书签

请使用此 (https://mariago.site/mobile_api/add_bookmark) API访问添加书签/取消书签帖子端点


POST参数

字段 值 说明
session_id 访问令牌ID 例如: de25cc16eb00960f076...
post_id 要添加/取消书签的帖子整数ID 例如: 4567

成功响应

{
    	"code": 200,
    	"message": "",
    	"data": {
    		"bookmark": false
    	}
    }
    

错误响应

{
        "code": 401,
        "data": [],
        "message": "未授权访问"
    }

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