voteOnPoll method

Future<Poll> voteOnPoll(
  1. String id
)
inherited

POST /api/v1/polls/:id/votes

  • token + write:statuses

Implementation

Future<Poll> voteOnPoll(String id) async {
  final response = await request(
    Method.get,
    "/api/v1/polls/$id/votes",
  );

  return Poll.fromJson(json.decode(response.body));
}