Skip to content

Commit

Permalink
param name change
Browse files Browse the repository at this point in the history
  • Loading branch information
Abinaya-Shunmugavel committed Jan 18, 2024
1 parent 0dc0494 commit 07efba4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions plivo/resources/multipartycall.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def add_participant(self,
start_recording_audio_method='GET',
stop_recording_audio=None,
stop_recording_audio_method='GET',
create_mpc_if_alone=True
start_mpc_with_single_participant=True
):
return self.client.multi_party_calls.add_participant(role, uuid=self.id,
**to_param_dict(self.add_participant, locals()))
Expand Down Expand Up @@ -335,7 +335,7 @@ def get(self, uuid=None, friendly_name=None, callback_url=None, callback_method=
stop_recording_audio_method=[optional(of_type_exact(str), is_in(('GET', 'POST'), case_sensitive=False))],
callback_url=[optional(is_url())],
callback_method=[optional(of_type(six.text_type))],
create_mpc_if_alone=[optional(of_type_exact(bool))],
start_mpc_with_single_participant=[optional(of_type_exact(bool))],
)
def add_participant(self,
role,
Expand Down Expand Up @@ -390,7 +390,7 @@ def add_participant(self,
stop_recording_audio_method='GET',
callback_url=None,
callback_method=None,
create_mpc_if_alone=True
start_mpc_with_single_participant=True
):
mpc_id = self.__make_mpc_id(friendly_name, uuid)
caller_name = caller_name or from_
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/test_multipartycalls.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def test_add_participant(self):
'role': 'agent',
'start_recording_audio_method': 'GET',
'stop_recording_audio_method': 'GET',
'create_mpc_if_alone': True
'start_mpc_with_single_participant': True
}

add_participant_response = self.client.multi_party_calls.add_participant(friendly_name='Voice', role='agent',
Expand Down

0 comments on commit 07efba4

Please sign in to comment.