TTWrite API Documentation: bookmarks Endpoint
This document provides details on using the bookmarks
endpoint to manage and retrieve bookmarks in the TTWrite API.
Navigation Overview
The bookmarks
endpoint includes two functionalities:
- Get Bookmarks – Retrieve a list of user bookmarks.
- Add Bookmark – Toggle bookmarking for a specific post.
Functionalities of the bookmarks
Endpoint
1. Get Bookmarks
API Endpoint
- URL:
mobile_api/get_bookmarks
Description
Retrieve a list of bookmarks for the authenticated user.
Get Parameters
Field | Value | Remarks |
---|---|---|
session_id | Access token ID | Example: de25cc16eb00960f076... |
page_size | Total post limit per request | Recommended: 20 |
offset | Offset for pagination | Use the ID of the last post retrieved |
2. Add Bookmark / Unbookmark
API Endpoint
- URL:
mobile_api/add_bookmark
Description
Toggle the bookmark status of a post. The first call bookmarks the post, and the second call removes the bookmark.
Post Parameters
Field | Value | Remarks |
---|---|---|
session_id | Access token ID | Example: de25cc16eb00960f076... |
post_id | Integer ID of the post | Example: 4567 |
Notes
- Ensure the
session_id
is valid and corresponds to the authenticated user. - For
get_bookmarks
, implement pagination usingpage_size
andoffset
. - The
add_bookmark
API operates as a toggle for bookmarking and unbookmarking posts.
admin December 8, 2024 access token validation, add bookmark API, bookmark API guide, bookmark list retrieval, bookmark pagination, bookmark post endpoint, bookmark/unbookmark API, bookmarks API, get bookmarks API, pagination API, pagination offset, post ID parameter, post limit parameter, retrieve bookmarks API, session ID parameter, toggle bookmark status, TTWrite bookmarks, TTWrite documentation, unbookmark API, user bookmarks management API, Social Media, TTWrite Comments Off on TTWrite API Documentation: bookmarks Endpoint