You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fetches Eventsub Subscriptions for either webhook or websocket.
2390
2441
2391
2442
.. note::
2392
-
type, statusand user_id are mutually exclusive and only one can be passed, otherwise ValueError will be raised.
2443
+
type, status, user_id, and subscription_id are mutually exclusive and only one can be passed, otherwise ValueError will be raised.
2393
2444
2394
2445
This endpoint returns disabled WebSocket subscriptions for a minimum of 1 minute as compared to webhooks which returns disabled subscriptions for a minimum of 10 days.
Filter subscriptions by subscription type. e.g. ``channel.follow`` For a list of subscription types, see `Subscription Types <https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types/#subscription-types>`_.
2404
2455
user_id: str | PartialUser | None
2405
2456
Filter subscriptions by user ID, or PartialUser. The response contains subscriptions where this ID matches a user ID that you specified in the Condition object when you created the subscription.
2457
+
subscription_id: str | None
2458
+
The specific subscription ID to fetch.
2406
2459
status: str | None = None
2407
2460
Filter subscriptions by its status. Possible values are:
raiseValueError("Only one of 'status', 'user_id', or 'type' can be provided.")
2518
+
raiseValueError("Only one of 'status', 'user_id', 'subscription_id', or 'type' can be provided.")
2466
2519
2467
2520
returnawaitself._http.get_eventsub_subscription(
2468
2521
type=type,
2469
2522
max_results=max_results,
2470
2523
token_for=token_for,
2524
+
subscription_id=subscription_id,
2525
+
user_id=user_id,
2526
+
status=status,
2527
+
)
2528
+
2529
+
asyncdeffetch_eventsub_subscription(
2530
+
self,
2531
+
subscription_id: str,
2532
+
*,
2533
+
token_for: str|PartialUser|None=None,
2534
+
) ->EventsubSubscription|None:
2535
+
"""|coro|
2536
+
2537
+
Fetches a specific Eventsub Subscription for either webhook or websocket.
2538
+
2539
+
.. note::
2540
+
This endpoint returns disabled WebSocket subscriptions for a minimum of 1 minute as compared to webhooks which returns disabled subscriptions for a minimum of 10 days.
2541
+
2542
+
Parameters
2543
+
-----------
2544
+
subscription_id: str
2545
+
The specific subscription ID to fetch.
2546
+
token_for: str | PartialUser | None
2547
+
By default, if this is ignored or set to None then the App Token is used. This is the case when you want to fetch webhook events.
2548
+
2549
+
Provide a user ID here for when you want to fetch websocket events tied to a user.
0 commit comments