Skip to content

HasPollMethods ​

php
trait Zairakai\LaravelTwitch\Services\Concerns\HasPollMethods

Twitch Polls API methods.

Source: src/Services/Concerns/HasPollMethods.php

Methods ​

createPoll() ​

php
public function createPoll(CreatePollRequest $createPollRequest): Poll

Create a poll for a broadcaster's channel.

endPoll() ​

php
public function endPoll(string $broadcasterId, string $pollId, string $status = 'TERMINATED'): Poll

End an active poll.

ParameterDescription
$statusTERMINATED (end with results) or ARCHIVED (end without showing)

getPolls() ​

php
public function getPolls(string $broadcasterId, string|array|null $pollIds = null, int $first = 20, string $after = null): PaginatedResult

Get information about polls for a broadcaster's channel.

ParameterDescription
$pollIdsFilter by specific poll ID(s)

Returns PaginatedResult<Poll>

Documentation of 4.1.4 , built from a03e949 on 4.1.4 by pipeline #2949087255 on 2026-10-11.