Skip to content

Commit c5ca05a

Browse files
committed
Deprecate download_mp4_recording and download_mp3_recording
1 parent fe60acb commit c5ca05a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

client/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ aiohttp>=3.7.4
22
aiofiles>=0.7.0
33
aiohttp-retry>=2.4.6
44
certifi>=2021.10.8
5+
Deprecated

client/src/dolbyio_rest_apis/communications/monitor/recordings.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
This module contains the functions to work with the monitor API related to recordings.
66
"""
77

8+
from deprecated import deprecated
89
from dolbyio_rest_apis.communications.internal.http_context import CommunicationsHttpContext
910
from dolbyio_rest_apis.communications.internal.urls import get_monitor_url
1011
from dolbyio_rest_apis.communications.monitor.models import GetRecordingsResponse, Recording, DolbyVoiceRecording
@@ -51,7 +52,7 @@ async def get_recordings(
5152
'from': tr_from,
5253
'to': tr_to,
5354
'max': maximum,
54-
'perm': str(perm),
55+
'perm': str(perm).lower(),
5556
}
5657

5758
if not start is None:
@@ -102,7 +103,7 @@ async def get_all_recordings(
102103
'from': tr_from,
103104
'to': tr_to,
104105
'max': page_size,
105-
'perm': str(perm),
106+
'perm': str(perm).lower(),
106107
}
107108

108109
recordings = []
@@ -161,7 +162,7 @@ async def get_recording(
161162
'from': tr_from,
162163
'to': tr_to,
163164
'max': page_size,
164-
'perm': str(perm),
165+
'perm': str(perm).lower(),
165166
}
166167

167168
recordings = []
@@ -246,6 +247,7 @@ async def get_dolby_voice_recordings(
246247

247248
return DolbyVoiceRecording(json_response)
248249

250+
@deprecated(reason='This API is no longer applicable on the Dolby.io Communications APIs platform.')
249251
async def download_mp4_recording(
250252
access_token: str,
251253
conference_id: str,
@@ -279,6 +281,7 @@ async def download_mp4_recording(
279281
file_path=file_path,
280282
)
281283

284+
@deprecated(reason='This API is no longer applicable on the Dolby.io Communications APIs platform.')
282285
async def download_mp3_recording(
283286
access_token: str,
284287
conference_id: str,

0 commit comments

Comments
 (0)