Appearance
HasChannelPointsMethods
php
trait Zairakai\LaravelTwitch\Services\Concerns\HasChannelPointsMethodsTwitch Channel Points API methods.
Source: src/Services/Concerns/HasChannelPointsMethods.php
Methods
createCustomReward()
php
public function createCustomReward(string $broadcasterId, CreateCustomRewardRequest $createCustomRewardRequest): CustomRewardCreate a new custom reward for a broadcaster's channel.
deleteCustomReward()
php
public function deleteCustomReward(string $broadcasterId, string $rewardId): voidDelete a custom reward for a broadcaster's channel.
getCustomRewards()
php
public function getCustomRewards(string $broadcasterId, string|array|null $rewardIds = null, bool $onlyManageable = false): DataCollectionGet the list of custom rewards for a broadcaster's channel.
| Parameter | Description |
|---|---|
$rewardIds | Filter by reward ID(s) |
Returns DataCollection<int, CustomReward>
getRedemptions()
php
public function getRedemptions(string $broadcasterId, string $rewardId, string $status = null, string|array|null $redemptionIds = null, int $first = 20, string $after = null): PaginatedResultGet a list of redemptions for a custom reward.
| Parameter | Description |
|---|---|
$status | UNFULFILLED, FULFILLED, or CANCELED |
$redemptionIds | Filter by specific redemption ID(s) |
Returns PaginatedResult<Redemption>
updateCustomReward()
php
public function updateCustomReward(string $broadcasterId, string $rewardId, UpdateCustomRewardRequest $updateCustomRewardRequest): CustomRewardUpdate a custom reward for a broadcaster's channel.
updateRedemptionStatus()
php
public function updateRedemptionStatus(string $broadcasterId, string $rewardId, string|array $redemptionIds, string $status): DataCollectionUpdate the redemption status for one or more redemptions.
| Parameter | Description |
|---|---|
$redemptionIds | Redemption ID(s) to update |
$status | FULFILLED or CANCELED |
Returns DataCollection<int, Redemption>