Appearance
HasDropsMethods
php
trait Zairakai\LaravelTwitch\Services\Concerns\HasDropsMethodsTwitch Drops Entitlements API methods.
Source: src/Services/Concerns/HasDropsMethods.php
Methods
getDropsEntitlements()
php
public function getDropsEntitlements(string|array|null $ids = null, string $userId = null, string $gameId = null, string $fulfillmentStatus = null, int $first = 20, string $after = null): PaginatedResultGet a list of entitlements for a given organization that have been granted to a user.
| Parameter | Description |
|---|---|
$ids | Filter by entitlement ID(s) |
$fulfillmentStatus | Filter by status: CLAIMED, FULFILLED |
Returns PaginatedResult<DropsEntitlement>
updateDropsEntitlements()
php
public function updateDropsEntitlements(array $entitlementIds, string $fulfillmentStatus): DataCollectionUpdate the fulfillment status of entitlements.
| Parameter | Description |
|---|---|
$entitlementIds | List of entitlement IDs to update (max 100) |
$fulfillmentStatus | CLAIMED or FULFILLED |
Returns DataCollection<int, EntitlementStatus>