Compare commits
4 Commits
dev
...
19b8d7fb49
| Author | SHA1 | Date | |
|---|---|---|---|
| 19b8d7fb49 | |||
| 818affc74b | |||
| 93fe1beb2f | |||
| 8dc0781e96 |
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "oxidetwitch"
|
name = "oxidetwitch"
|
||||||
version = "1.2.5"
|
version = "1.2.2"
|
||||||
description = "Client for Twitch API"
|
description = "Client for Twitch API"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{ name = "Miwory", email = "miwory.uwu@gmail.com" }]
|
authors = [{ name = "Miwory", email = "miwory.uwu@gmail.com" }]
|
||||||
|
|||||||
@ -93,9 +93,6 @@ class TwitchAPIClient(OxideHTTP):
|
|||||||
if isinstance(result.pagination, s.Pagination):
|
if isinstance(result.pagination, s.Pagination):
|
||||||
after = result.pagination.cursor
|
after = result.pagination.cursor
|
||||||
|
|
||||||
else:
|
|
||||||
after = None
|
|
||||||
|
|
||||||
if after is None:
|
if after is None:
|
||||||
break
|
break
|
||||||
|
|
||||||
@ -569,7 +566,7 @@ class TwitchAPIClient(OxideHTTP):
|
|||||||
redemption_id: str | list[str],
|
redemption_id: str | list[str],
|
||||||
status: Literal['CANCELED', 'FULFILLED'],
|
status: Literal['CANCELED', 'FULFILLED'],
|
||||||
) -> bool:
|
) -> bool:
|
||||||
req = await self.patch(
|
req = await self.post(
|
||||||
'/channel_points/custom_rewards/redemptions',
|
'/channel_points/custom_rewards/redemptions',
|
||||||
headers=self._auth(access_token),
|
headers=self._auth(access_token),
|
||||||
params={
|
params={
|
||||||
@ -1473,14 +1470,12 @@ class TwitchAPIClient(OxideHTTP):
|
|||||||
'/eventsub/subscriptions',
|
'/eventsub/subscriptions',
|
||||||
s.EventsubBaseSubscriptions,
|
s.EventsubBaseSubscriptions,
|
||||||
self._auth(access_token),
|
self._auth(access_token),
|
||||||
self.clean_dict(
|
{
|
||||||
{
|
'status': status,
|
||||||
'status': status,
|
'type': sub_type,
|
||||||
'type': sub_type,
|
'user_id': user_id,
|
||||||
'user_id': user_id,
|
'subscription_id': subscription_id,
|
||||||
'subscription_id': subscription_id,
|
},
|
||||||
}
|
|
||||||
),
|
|
||||||
cache_ttl,
|
cache_ttl,
|
||||||
):
|
):
|
||||||
for item in data.data:
|
for item in data.data:
|
||||||
|
|||||||
Reference in New Issue
Block a user