@@ -36,7 +36,9 @@ def __repr__(self) -> str:
36
36
)
37
37
38
38
def get_videos (self ) -> List [Video ]:
39
- videos_data = self ._connection .get (path = f"{ ApiPath .video } " )
39
+ videos_data = self ._connection .get (
40
+ path = f"{ ApiPath .collection } /{ self .id } /{ ApiPath .video } "
41
+ )
40
42
return [Video (self ._connection , ** video ) for video in videos_data .get ("videos" )]
41
43
42
44
def get_video (self , video_id : str ) -> Video :
@@ -54,7 +56,9 @@ def delete_video(self, video_id: str) -> None:
54
56
return self ._connection .delete (path = f"{ ApiPath .video } /{ video_id } " )
55
57
56
58
def get_audios (self ) -> List [Audio ]:
57
- audios_data = self ._connection .get (path = f"{ ApiPath .audio } " )
59
+ audios_data = self ._connection .get (
60
+ path = f"{ ApiPath .collection } /{ self .id } /{ ApiPath .audio } "
61
+ )
58
62
return [Audio (self ._connection , ** audio ) for audio in audios_data .get ("audios" )]
59
63
60
64
def get_audio (self , audio_id : str ) -> Audio :
@@ -65,7 +69,9 @@ def delete_audio(self, audio_id: str) -> None:
65
69
return self ._connection .delete (path = f"{ ApiPath .audio } /{ audio_id } " )
66
70
67
71
def get_images (self ) -> List [Image ]:
68
- images_data = self ._connection .get (path = f"{ ApiPath .image } " )
72
+ images_data = self ._connection .get (
73
+ path = f"{ ApiPath .collection } /{ self .id } /{ ApiPath .image } "
74
+ )
69
75
return [Image (self ._connection , ** image ) for image in images_data .get ("images" )]
70
76
71
77
def get_image (self , image_id : str ) -> Image :
0 commit comments