createVote abstract method
Post a vote to specific choice.
Parameters
-
pollId
: The ID of the Poll in the database. -
choice
: Index of options to vote on.
Endpoint Url
- POST /api/v1/polls/:id/votes HTTP/1.1
Authentication Methods
- OAuth 2.0
Required Scopes
- write:statuses
Reference
Implementation
Future<MastodonResponse<Poll>> createVote({
required String pollId,
required int choice,
});