Skip to content

Commit 50e17a8

Browse files
committed
Requested changes
1 parent 7078599 commit 50e17a8

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

fishjam/api/_fishjam_client.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
from fishjam._openapi_client.api.moq import (
77
create_moq_publisher_token as moq_create_publisher_token,
8+
)
9+
from fishjam._openapi_client.api.moq import (
810
create_moq_subscriber_token as moq_create_subscriber_token,
911
)
1012
from fishjam._openapi_client.api.room import add_peer as room_add_peer
@@ -367,34 +369,34 @@ def create_livestream_streamer_token(self, room_id: str) -> str:
367369

368370
return response.token
369371

370-
def create_moq_publisher_token(self, stream_name: str) -> str:
372+
def create_moq_publisher_token(self, stream_id: str) -> str:
371373
"""Generates a MoQ publisher token for the given stream.
372374
373375
Args:
374-
stream_name: The name of the MoQ stream.
376+
stream_id: The name of the MoQ stream.
375377
376378
Returns:
377379
str: The generated publisher token.
378380
"""
379381
response = cast(
380382
MoqToken,
381-
self._request(moq_create_publisher_token, stream_id=stream_name),
383+
self._request(moq_create_publisher_token, stream_id=stream_id),
382384
)
383385

384386
return response.token
385387

386-
def create_moq_subscriber_token(self, stream_name: str) -> str:
388+
def create_moq_subscriber_token(self, stream_id: str) -> str:
387389
"""Generates a MoQ subscriber token for the given stream.
388390
389391
Args:
390-
stream_name: The name of the MoQ stream.
392+
stream_id: The name of the MoQ stream.
391393
392394
Returns:
393395
str: The generated subscriber token.
394396
"""
395397
response = cast(
396398
MoqToken,
397-
self._request(moq_create_subscriber_token, stream_id=stream_name),
399+
self._request(moq_create_subscriber_token, stream_id=stream_id),
398400
)
399401

400402
return response.token

0 commit comments

Comments
 (0)