TTWrite API Documentation: avatar_cover Endpoint
This document provides detailed instructions for using the avatar_cover
endpoint in the TTWrite API. This endpoint allows users to manage their avatars, profile covers, and cover repositioning. Each section describes the functionality, required parameters, and expected responses.
Navigation Overview
The avatar_cover
endpoint uses a tab-based structure for its functionalities:
- Upload Avatar
- Tab ID:
nav-1
- Includes:
avatar.phtml
- Tab ID:
- Upload Cover
- Tab ID:
nav-2
- Includes:
cover.phtml
- Tab ID:
- Move Cover
- Tab ID:
nav-3
- Includes:
move.phtml
- Tab ID:
Functionalities of the avatar_cover
Endpoint
1. Change User Avatar
API Endpoint
- URL:
avatar_cover/mobile_api/avatar
Parameters
Field | Value | Remarks |
---|---|---|
session_id | Access token ID | Example: de25cc16eb00960f076... |
avatar | Image file (jpg, png, jpeg, gif) | Example: image.jpeg |
Description
This API function allows users to upload or update their avatars. Only supported image formats are accepted.
2. Change User Profile Cover
API Endpoint
- URL:
avatar_cover/mobile_api/cover
Parameters
Field | Value | Remarks |
---|---|---|
session_id | Access token ID | Example: de25cc16eb00960f076... |
cover | Image file (jpg, png, jpeg, gif) | Example: image.jpeg |
Description
Users can upload or replace their profile cover using this functionality.
3. Change User Profile Cover Position
API Endpoint
- URL:
avatar_cover/mobile_api/cover_reposition
Parameters
Field | Value | Remarks |
---|---|---|
session_id | Access token ID | Example: de25cc16eb00960f076... |
offset_y | Pixel offset (integer) | Positive or negative values for upward or downward adjustment. |
Description
This functionality enables users to reposition their profile cover vertically by specifying an offset in pixels. Adjustments are relative to a standard cover size of 600×200 pixels.
Notes
- Ensure all required parameters are passed correctly to avoid errors.
- Use appropriate access tokens for authentication.
- Response structures for each API call are determined by the TTWrite backend and will confirm success or return error details.
admin December 8, 2024 API navigation structure, API success response, avatar and cover management, avatar image formats, avatar upload parameters, avatar_cover endpoint, cover image formats, cover reposition API, cover upload parameters, mobile API endpoints, profile cover position, profile cover upload, profile customization API, reposition cover offset, TTWrite API, TTWrite API guide, TTWrite documentation, user avatar upload, user session token API, Social Media, TTWrite Comments Off on TTWrite API Documentation: avatar_cover Endpoint