Logo CTech NEWS PLATFORM
CTech NEWS API
  • Get Started
  • Login
  • Social Login
  • Signup
  • Reset Password
  • Timeline Feed
  • Profile Data (2)
  • Report Profile
  • 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

Get Privacy settings

Please use this (https://ctechtm.com/news/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://ctechtm.com/news/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"
    }