TTWrite API: Thread Data
The Thread Data API suite provides endpoints for retrieving detailed thread data and loading replies to posts in a thread.
1. Fetch Thread Data
Endpoint URL
//ttwrite.4up.eu/mobile_api/thread_data
Description
This API retrieves the main post and its associated thread data, including replies to the post.
Parameters
Field | Value | Remarks |
---|---|---|
thread_id | integer | The unique identifier of the thread to fetch. |
Example Usage
codeGET //ttwrite.4up.eu/mobile_api/thread_data?thread_id=12345
Notes
- The response includes:
post
: The main post data of the thread.next
: An array of replies to the thread, each of which may include areplys
variable containing nested replies.
- Authentication is required to access this API.
2. Load Thread Replies
Endpoint URL
//ttwrite.4up.eu/mobile_api/thread_replys
Description
This API loads replies to a specific post within a thread, supporting nested replies for deeper discussions.
Parameters
Field | Value | Remarks |
---|---|---|
post_id | integer | The unique identifier of the post whose replies are being fetched. |
limit | integer | Optional. Number of replies to return. Default is 20. |
offset | integer | Optional. Pagination starting point for replies. |
Example Usage
codeGET //ttwrite.4up.eu/mobile_api/thread_replys?post_id=67890&limit=10&offset=0
Notes
- Each reply includes nested replies in the
replys
variable. - Use
limit
andoffset
to manage large sets of replies.
Notes for Both Endpoints
- These endpoints provide a comprehensive way to explore thread data and facilitate discussions on posts.
- Use
thread_id
for retrieving the main thread data andpost_id
for loading replies to specific posts. - Ensure valid IDs to avoid errors in fetching data.
admin December 9, 2024 API for thread management., API for thread replies, fetch post replies, fetch thread data, load replies API, load thread replies, nested replies functionality, nested thread replies, post thread API, thread data API, thread data management, thread discussion API, thread replies API, thread replies pagination, TTWrite API, TTWrite discussion threads, TTWrite thread details, TTWrite thread endpoint, TTWrite thread exploration, TTWrite thread functionality API, Social Media, TTWrite Comments Off on TTWrite API: Thread Data