View Source TwitchEventSub.Subscriptions (hello_twitch_eventsub v0.2.0)

Twitch API.

Summary

Functions

Create an eventsub subscription.

Create many Twitch event sub subscriptions.

List all eventsub subscriptions.

Types

@type auth_store() :: TwitchAPI.AuthStore.name() | pid()

Functions

Link to this function

create(auth_store, subscription, opts)

View Source
@spec create(
  auth_store :: auth_store(),
  subscription :: TwitchEventSub.Subscriptions.Subscription.t(),
  opts :: map()
) :: {:ok, Req.Response.t()} | {:error, term()}

Create an eventsub subscription.

Link to this function

create_many(auth_store, method, channel_ids, subscriptions, opts)

View Source
@spec create_many(
  auth_store :: auth_store(),
  method :: :conduit | :webhook | :websocket,
  channel_ids :: [String.t()],
  subscriptions :: [String.t()],
  opts :: map()
) :: :ok

Create many Twitch event sub subscriptions.

Link to this function

list(auth_store, params \\ %{})

View Source
@spec list(TwitchAPI.AuthStore.name() | pid(), params :: map()) ::
  {:ok, Req.Response.t()} | {:error, term()}

List all eventsub subscriptions.