Skip to content

Commit 09fafbb

Browse files
committed
Add base get_clips_download
1 parent 26bf2b9 commit 09fafbb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

twitchio/http.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
from twitchio.types_.responses import ConduitPayload
6868

69-
from .assets import Asset
69+
from .assets import Asset, ClipAsset
7070
from .eventsub.enums import SubscriptionType
7171
from .models.channel_points import CustomReward
7272
from .models.moderation import AutomodCheckMessage, AutomodSettings
@@ -1350,6 +1350,19 @@ async def post_create_clip(
13501350
route: Route = Route("POST", "clips", params=params, token_for=token_for)
13511351
return await self.request_json(route)
13521352

1353+
@handle_user_ids()
1354+
async def get_clips_download(
1355+
self,
1356+
*,
1357+
editor_id: str | PartialUser,
1358+
broadcaster_id: str | PartialUser,
1359+
clip_id: str,
1360+
) -> ClipAsset:
1361+
params = {"editor_id": editor_id, "broadcaster_id": broadcaster_id, "clip_id": clip_id}
1362+
route: Route = Route("GET", "clips/downloads", params=params, token_for=editor_id)
1363+
1364+
data = await self.request_json(route)
1365+
13531366
### Conduits ###
13541367

13551368
async def delete_conduit(self, conduit_id: str, /) -> None:

0 commit comments

Comments
 (0)