Appearance
HasChannelMethods
php
trait Zairakai\LaravelTwitch\Services\Concerns\HasChannelMethodsTwitch Channel API methods.
Source: src/Services/Concerns/HasChannelMethods.php
Methods
createScheduleSegment()
php
public function createScheduleSegment(string $broadcasterId, CreateScheduleSegmentRequest $createScheduleSegmentRequest): ScheduleSegmentAdd a single or recurring broadcast segment to the broadcaster's streaming schedule.
deleteScheduleSegment()
php
public function deleteScheduleSegment(string $broadcasterId, string $segmentId): voidRemove a segment from the broadcaster's streaming schedule.
getChannel()
php
public function getChannel(string|array $broadcasterIds): DataCollectionGet information about one or more channels.
| Parameter | Description |
|---|---|
$broadcasterIds | One or more broadcaster IDs (max 100) |
Returns DataCollection<int, Channel>
getChannelEditors()
php
public function getChannelEditors(string $broadcasterId): DataCollectionGet 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): ScheduleGet the broadcaster's stream schedule.
getScheduleCalendar()
php
public function getScheduleCalendar(string $broadcasterId): stringGet 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): PaginatedResultSearch for Twitch channels by query string.
Returns PaginatedResult<SearchChannel>
updateChannel()
php
public function updateChannel(string $broadcasterId, UpdateChannelRequest $updateChannelRequest): voidUpdate a channel's properties.
updateScheduleSegment()
php
public function updateScheduleSegment(string $broadcasterId, string $segmentId, UpdateScheduleSegmentRequest $updateScheduleSegmentRequest): ScheduleSegmentUpdate a segment in the broadcaster's streaming schedule.
updateScheduleSettings()
php
public function updateScheduleSettings(string $broadcasterId, UpdateScheduleSettingsRequest $updateScheduleSettingsRequest): voidUpdate the broadcaster's stream schedule settings (e.g. vacation mode).