TwitchApi.Entitlements.GetDropsEntitlements (TwitchApi v0.1.2) View Source

⛔ This module is autogenerated please do not modify manually.

Example request from twitch api docs:

descriptions:

requests:

curl -H GET 'helix/entitlements/drops?user_id=25009227&game_id=33214'
-H'Authorization: Bearer cfabdegwdoklmawdzdo98xt2fo512y'
-H'Client-Id: uo6dggojyb8d6soh92zknwmi5ej1q2'

Example response from twitch api docs:

descriptions:

responses:

{"data":[{"id":"fb78259e-fb81-4d1b-8333-34a06ffc24c0","benefit_id":"74c52265-e214-48a6-91b9-23b6014e8041","timestamp":"2019-01-28T04:17:53.325Z","user_id":"25009227","game_id":"33214","fulfillment_status":"CLAIMED","updated_at":"2019-01-28T04:17:53.325Z"},{"id":"862750a5-265e-4ab6-9f0a-c64df3d54dd0","benefit_id":"74c52265-e214-48a6-91b9-23b6014e8041","timestamp":"2019-01-28T04:16:53.325Z","user_id":"25009227","game_id":"33214","fulfillment_status":"CLAIMED","updated_at":"2021-06-15T04:16:53.325Z"},{"id":"d8879baa-3966-4d10-8856-15fdd62cce02","benefit_id":"cdfdc5c3-65a2-43bc-8767-fde06eb4ab2c","timestamp":"2019-01-28T04:15:53.325Z","user_id":"25009227","game_id":"33214","fulfillment_status":"FULFILLED","updated_at":"2019-01-28T04:17:53.325Z"},...],"pagination":{"cursor":"eyJiIjpudW..."}}

Link to this section Summary

Types

The cursor used to fetch the next page of data.

Maximum number of entitlements to return.Default: 20Max: 1000

An optional fulfillment status used to filter entitlements. Valid values are "CLAIMED" or "FULFILLED".

A Twitch game ID.

Unique identifier of the entitlement.

A Twitch user ID.

Functions

Description:

Gets a list of entitlements for a given organization that have been granted to a game, user, or both.

Link to this section Types

Specs

after_query_param() :: %{after_query_param: String.t()}

The cursor used to fetch the next page of data.

Specs

first() :: %{first: integer()}

Maximum number of entitlements to return.Default: 20Max: 1000

Specs

fulfillment_status() :: %{fulfillment_status: String.t()}

An optional fulfillment status used to filter entitlements. Valid values are "CLAIMED" or "FULFILLED".

Specs

game_id() :: %{game_id: String.t()}

A Twitch game ID.

Specs

id() :: %{id: String.t()}

Unique identifier of the entitlement.

Specs

user_id() :: %{user_id: String.t()}

A Twitch user ID.

Link to this section Functions

Specs

call(
  id()
  | user_id()
  | game_id()
  | fulfillment_status()
  | after_query_param()
  | first()
) :: {:ok, Finch.Response.t()} | {:error, Exception.t()}

Description:

Gets a list of entitlements for a given organization that have been granted to a game, user, or both.

Required authentication:

User OAuth Token or App Access Token

Required authorization:

The client ID associated with the access token must have ownership of the game: Client ID > Organization ID > Game ID