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
Get settings - 1 Set settings - 2

获取隐私设置

请使用此 (https://mariago.site/mobile_api/get_priv_settings) API访问用户隐私设置端点


GET参数

字段 值 说明
session_id 访问令牌ID 例如: de25cc16eb00960f076...

成功响应

{
        "code": 200,
        "message": "",
        "data":{
            "profile_visibility": "everyone",
            "contact_privacy": "everyone",
            "follow_privacy": "everyone",
            "search_visibility": true
        }
    }
    

错误响应

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

修改隐私设置

请使用此 (https://mariago.site/mobile_api/set_priv_settings) API访问修改用户隐私设置端点


POST参数

字段 值 说明
session_id 访问令牌ID 例如: de25cc16eb00960f076...
profile_visibility 资料访问权限 例如: 以下选项之一 (followers/everyone)
contact_privacy 私信权限 例如: 以下选项之一 (followed/everyone)
follow_privacy 关注请求权限 例如: 以下选项之一 (approved/everyone)
search_visibility 资料搜索索引权限 例如: 以下选项之一 (Y/N)

成功响应

{
        "code": 200,
        "message": "用户隐私设置已更新",
        "data": []
    }
    

错误响应

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

    {
        "code": 400,
        "data": [],
        "message": "请求数据无效"
    }