TTWrite API: Like / Unlike Post

Endpoint URL

//ttwrite.4up.eu/mobile_api/like_post

Description

This API allows the authenticated user to like or unlike a specific post on the TTWrite platform.

Parameters

FieldValueRemarks
post_idintegerThe unique identifier of the post to like or unlike.
actionstringSpecifies the action: either like or unlike.

Example Usage

httpCopy codePOST //ttwrite.4up.eu/mobile_api/like_post
Content-Type: application/json

{
  "post_id": 456,
  "action": "like"
}

Notes

  • Authentication is required to access this API.
  • Ensure the post_id corresponds to an existing post.
  • Use the action parameter to toggle between liking and unliking the post.