Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Change Log
## [4.59.0](https://github.com/plivo/plivo-python/tree/v4.59.0) (2025-04-30)
**Feature - New Param added for Start Recording API.**
- Support `record_channel_type` in Start Recording API and `recordChannelType` in Record XML.

## [4.58.6](https://github.com/plivo/plivo-python/tree/v4.58.6) (2025-02-25)
**Enhancement - Supporting parameter_name in WhatsApp Template .**
- Supporting parameter_name in WhatsApp Template .
Expand Down
9 changes: 6 additions & 3 deletions plivo/resources/calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def record(self,
transcription_url=None,
transcription_method=None,
callback_url=None,
callback_method=None):
callback_method=None,
record_channel_type=None):
return self.client.calls.record(self.id,
**to_param_dict(self.record, locals()))

Expand Down Expand Up @@ -345,7 +346,8 @@ def record(self,
transcription_url=None,
transcription_method=None,
callback_url=None,
callback_method=None):
callback_method=None,
record_channel_type=None):
return self.start_recording(**to_param_dict(self.start_recording,
locals()))

Expand All @@ -358,7 +360,8 @@ def start_recording(self,
transcription_url=None,
transcription_method=None,
callback_url=None,
callback_method=None):
callback_method=None,
record_channel_type=None):
return self.client.request('POST', ('Call', call_uuid, 'Record'),
to_param_dict(self.start_recording,
locals()), is_voice_request=True)
Expand Down
2 changes: 1 addition & 1 deletion plivo/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = '4.58.6'
__version__ = '4.59.0'
19 changes: 19 additions & 0 deletions plivo/xml/recordElement.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,22 @@ def set_callback_method(self, value):
self.callback_method = value
return self

@property
def record_channel_type(self):
return self.__record_channel_type

@record_channel_type.setter
def record_channel_type(self, value):
self.__record_channel_type = six.text_type(
value) if value is not None else None

@validate_args(
value=[of_type(six.text_type)],
)
def set_record_channel_type(self, value):
self.record_channel_type = value
return self

def __init__(
self,
action=None,
Expand All @@ -256,6 +272,7 @@ def __init__(
transcription_method=None,
callback_url=None,
callback_method=None,
record_channel_type=None
):
super(RecordElement, self).__init__()

Expand All @@ -274,6 +291,7 @@ def __init__(
self.transcription_method = transcription_method
self.callback_url = callback_url
self.callback_method = callback_method
self.record_channel_type = record_channel_type

def to_dict(self):
d = {
Expand All @@ -292,6 +310,7 @@ def to_dict(self):
'transcriptionMethod': self.transcription_method,
'callbackUrl': self.callback_url,
'callbackMethod': self.callback_method,
'recordChannelType': self.record_channel_type
}
return {
k: six.text_type(map_type(v))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='plivo',
version='4.58.6',
version='4.59.0',
description='A Python SDK to make voice calls & send SMS using Plivo and to generate Plivo XML',
long_description=long_description,
url='https://github.com/plivo/plivo-python',
Expand Down
Loading