TTWrite API: Vote Polls

Endpoint URL

//ttwrite.4up.eu/mobile_api/vote_polls

Description

This API allows users to cast their votes in polls created on the TTWrite platform.

Parameters

FieldValueRemarks
poll_idintegerThe unique identifier of the poll being voted on.
option_idintegerThe unique identifier of the selected poll option.

Example Usage

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

{
  "poll_id": 67890,
  "option_id": 2
}

Notes

  • Authentication is required to access this API.
  • Ensure the poll_id and option_id correspond to valid and active poll and option entries.
  • The response will confirm the vote and update the poll results.