TTWrite API: Privacy Settings
The Privacy Settings API provides endpoints for retrieving and updating the privacy settings of the authenticated user.
1. Get Privacy Settings
Endpoint URL
//ttwrite.4up.eu/mobile_api/get_priv_settings
Description
Fetches the current privacy settings for the authenticated user.
Parameters
Field | Value | Remarks |
---|---|---|
None | None | No parameters are required. |
Example Usage
httpCopy codeGET //ttwrite.4up.eu/mobile_api/get_priv_settings
Notes
- Authentication is required to access this API.
- Returns the user’s current privacy settings, such as profile visibility and interaction preferences.
2. Set Privacy Settings
Endpoint URL
//ttwrite.4up.eu/mobile_api/set_priv_settings
Description
Allows the authenticated user to update their privacy settings.
Parameters
Field | Value | Remarks |
---|---|---|
profile_visibility | string | Optional. Defines profile visibility (public , private ). |
allow_messages | boolean | Optional. Enables or disables direct messages. |
allow_tags | boolean | Optional. Enables or disables tagging by other users. |
Example Usage
httpCopy codePOST //ttwrite.4up.eu/mobile_api/set_priv_settings
Content-Type: application/json
{
"profile_visibility": "private",
"allow_messages": false,
"allow_tags": true
}
Notes
- Authentication is required to access this API.
- Parameters are optional; only specified fields will be updated.
- Ensure valid values for fields to avoid errors.
Notes for Both Endpoints
- The Get Privacy Settings endpoint is read-only, while the Set Privacy Settings endpoint allows updates.
- Use these endpoints to configure user preferences, such as visibility and interaction controls.
admin December 9, 2024 allow messages settings, allow tags settings, get privacy settings, manage user settings, privacy configuration TTWrite, privacy controls API, privacy preferences API, privacy settings API, privacy settings endpoints, profile privacy TTWrite, profile visibility API, secure profile settings, set privacy settings, TTWrite API, TTWrite interaction controls, TTWrite privacy management, TTWrite visibility settings, update privacy settings, user privacy API, user settings management API API, Social Media, TTWrite Comments Off on TTWrite API: Privacy Settings