Appearance
HasAdsMethods
php
trait Zairakai\LaravelTwitch\Services\Concerns\HasAdsMethodsTwitch Ads API methods.
Source: src/Services/Concerns/HasAdsMethods.php
Methods
getAdSchedule()
php
public function getAdSchedule(string $broadcasterId): AdScheduleGet ad schedule information for a broadcaster's channel.
snoozeNextAd()
php
public function snoozeNextAd(string $broadcasterId): AdSnoozeSnooze the next scheduled ad for 5 minutes.
startCommercial()
php
public function startCommercial(string $broadcasterId, int $length): CommercialResultStart a commercial on a specified channel.
| Parameter | Description |
|---|---|
$length | Duration of the commercial in seconds (30, 60, 90, 120, 150, or 180) |