createVotes abstract method
Post votes to specific choices.
Parameters
-
pollId
: The ID of the Poll in the database. -
choice
: Indexes 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>> createVotes({
required String pollId,
required List<int> choices,
});