Appearance
HasBitsMethods
php
trait Zairakai\LaravelTwitch\Services\Concerns\HasBitsMethodsTwitch Bits API methods.
Source: src/Services/Concerns/HasBitsMethods.php
Methods
getBitsLeaderboard()
php
public function getBitsLeaderboard(int $count = 10, string $period = 'ALL', string $userId = null, string $startedAt = null): DataCollectionGet the top bits leaderboard for a broadcaster's channel.
| Parameter | Description |
|---|---|
$count | Number of results to return (1-100) |
$period | DAY, WEEK, MONTH, YEAR, or ALL |
Returns DataCollection<int, BitsLeaderboardEntry>
getCheermotes()
php
public function getCheermotes(string $broadcasterId = null): DataCollectionGet the list of Cheermotes for a broadcaster's channel.
Returns DataCollection<int, Cheermote>
getCustomPowerUps()
php
public function getCustomPowerUps(string $broadcasterId, string|array|null $powerUpIds = null): DataCollectionGet a broadcaster's custom Bits Power-ups (the catalog entries - distinct from a specific redemption of one, see ChannelCustomPowerUpRedemptionAddEvent).
| Parameter | Description |
|---|---|
$powerUpIds | Filter by specific Power-up id(s), max 50 |
Returns DataCollection<int, CustomPowerUp>
getExtensionTransactions()
php
public function getExtensionTransactions(string $extensionId, string|array|null $transactionIds = null, string $after = null, int $first = 20): PaginatedResultGet a list of transactions for an extension.
| Parameter | Description |
|---|---|
$transactionIds | Filter by specific transaction ID(s) |
Returns PaginatedResult<ExtensionTransaction>