Skip to content

HasChannelMethods ​

php
trait Zairakai\LaravelTwitch\Services\Concerns\HasChannelMethods

Twitch Channel API methods.

Source: src/Services/Concerns/HasChannelMethods.php

Methods ​

createScheduleSegment() ​

php
public function createScheduleSegment(string $broadcasterId, CreateScheduleSegmentRequest $createScheduleSegmentRequest): ScheduleSegment

Add a single or recurring broadcast segment to the broadcaster's streaming schedule.

deleteScheduleSegment() ​

php
public function deleteScheduleSegment(string $broadcasterId, string $segmentId): void

Remove a segment from the broadcaster's streaming schedule.

getChannel() ​

php
public function getChannel(string|array $broadcasterIds): DataCollection

Get information about one or more channels.

ParameterDescription
$broadcasterIdsOne or more broadcaster IDs (max 100)

Returns DataCollection<int, Channel>

getChannelEditors() ​

php
public function getChannelEditors(string $broadcasterId): DataCollection

Get a list of users who are editors for a channel.

Returns DataCollection<int, ChannelEditor>

getSchedule() ​

php
public function getSchedule(string $broadcasterId, string $segmentId = null, int $first = 20, string $after = null): Schedule

Get the broadcaster's stream schedule.

getScheduleCalendar() ​

php
public function getScheduleCalendar(string $broadcasterId): string

Get the broadcaster's stream schedule as an iCalendar file.

searchChannels() ​

php
public function searchChannels(string $query, int $first = 20, string $after = null, bool $liveOnly = false): PaginatedResult

Search for Twitch channels by query string.

Returns PaginatedResult<SearchChannel>

updateChannel() ​

php
public function updateChannel(string $broadcasterId, UpdateChannelRequest $updateChannelRequest): void

Update a channel's properties.

updateScheduleSegment() ​

php
public function updateScheduleSegment(string $broadcasterId, string $segmentId, UpdateScheduleSegmentRequest $updateScheduleSegmentRequest): ScheduleSegment

Update a segment in the broadcaster's streaming schedule.

updateScheduleSettings() ​

php
public function updateScheduleSettings(string $broadcasterId, UpdateScheduleSettingsRequest $updateScheduleSettingsRequest): void

Update the broadcaster's stream schedule settings (e.g. vacation mode).

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