Twittner Twittner API
Overview
Introduction
Authentication
Login POST Signup POST Social Login POST Reset Password POST Refresh Token POST Verify Account POST Logout POST
User Profile
Profile Data POST Update Profile POST Avatar & Cover POST Privacy Settings POST Change Password POST Change Language POST Delete Account POST
Content
Post & Reply POST Timeline Feed POST Thread Data POST Pin Post POST Delete Post POST Swifts POST
Social
Follow & Unfollow POST Fetch Followers POST Fetch Following POST Follow Requests POST
Engagement
Like & Unlike POST Vote on Polls POST Bookmarks POST Repost POST Report Post POST
Search
Search Hashtags POST Search People POST Search Posts POST
Messaging
Messages POST
Notifications
Get Notifications POST Delete Notifications POST Push Token POST
Moderation
Block User POST Report Profile POST
Back to Twittner
API / User Profile / Privacy Settings
Get settings - 1 Set settings - 2

Get Privacy settings

Please use this (https://twittner.com/mobile_api/get_priv_settings) API for accessing the endpoint of user privacy settings


Get parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...

Success response

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

Error responses

{
        "code": 401,
        "data": [],
        "message": "Unauthorized Access"
    }
    

Change Privacy settingss

Please use this (https://twittner.com/mobile_api/set_priv_settings) API for accessing the endpoint of changing user privacy settings


Post parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...
profile_visibility ​Profile access privacy E.g. One of these options (followers/everyone)
contact_privacy Direct message privacy E.g. One of these options (followed/everyone)
follow_privacy Follow request privacy E.g. One of these options (approved/everyone)
search_visibility ​Profile search indexing privacy E.g. One of these options (Y/N)

Success response

{
        "code": 200,
        "message": "User privacy settings updated",
        "data": []
    }
    

Error responses

{
        "code": 401,
        "data": [],
        "message": "Unauthorized Access"
    }

    {
        "code": 400,
        "data": [],
        "message": "Invalid request data"
    }