|
219 | 219 | from ..models import SetRecordingState |
220 | 220 | from ..models import SetUuiDataRequest |
221 | 221 | from ..models import Settings |
| 222 | +from ..models import SnippetRecordingRequest |
222 | 223 | from ..models import SocialMediaMessageData |
223 | 224 | from ..models import Suggestion |
224 | 225 | from ..models import SuggestionEngagement |
@@ -19600,6 +19601,96 @@ def post_conversations_call_participant_replace(self, conversation_id: str, part |
19600 | 19601 | callback=params.get('callback')) |
19601 | 19602 | return response |
19602 | 19603 |
|
| 19604 | + def post_conversations_call_participant_snippet_record(self, conversation_id: str, participant_id: str, body: 'SnippetRecordingRequest', **kwargs) -> str: |
| 19605 | + """ |
| 19606 | + Start/stop the snippet recording for a participant |
| 19607 | + |
| 19608 | + |
| 19609 | + This method makes a synchronous HTTP request by default. To make an |
| 19610 | + asynchronous HTTP request, please define a `callback` function |
| 19611 | + to be invoked when receiving the response. |
| 19612 | + >>> def callback_function(response): |
| 19613 | + >>> pprint(response) |
| 19614 | + >>> |
| 19615 | + >>> thread = api.post_conversations_call_participant_snippet_record(conversation_id, participant_id, body, callback=callback_function) |
| 19616 | + |
| 19617 | + :param callback function: The callback function |
| 19618 | + for asynchronous request. (optional) |
| 19619 | + :param str conversation_id: conversationId (required) |
| 19620 | + :param str participant_id: participantId (required) |
| 19621 | + :param SnippetRecordingRequest body: snippetRecordingRequest (required) |
| 19622 | + :return: str |
| 19623 | + If the method is called asynchronously, |
| 19624 | + returns the request thread. |
| 19625 | + """ |
| 19626 | + |
| 19627 | + all_params = ['conversation_id', 'participant_id', 'body'] |
| 19628 | + all_params.append('callback') |
| 19629 | + |
| 19630 | + params = locals() |
| 19631 | + for key, val in params['kwargs'].items(): |
| 19632 | + if key not in all_params: |
| 19633 | + raise TypeError( |
| 19634 | + "Got an unexpected keyword argument '%s'" |
| 19635 | + " to method post_conversations_call_participant_snippet_record" % key |
| 19636 | + ) |
| 19637 | + params[key] = val |
| 19638 | + del params['kwargs'] |
| 19639 | + |
| 19640 | + # verify the required parameter 'conversation_id' is set |
| 19641 | + if ('conversation_id' not in params) or (params['conversation_id'] is None): |
| 19642 | + raise ValueError("Missing the required parameter `conversation_id` when calling `post_conversations_call_participant_snippet_record`") |
| 19643 | + # verify the required parameter 'participant_id' is set |
| 19644 | + if ('participant_id' not in params) or (params['participant_id'] is None): |
| 19645 | + raise ValueError("Missing the required parameter `participant_id` when calling `post_conversations_call_participant_snippet_record`") |
| 19646 | + # verify the required parameter 'body' is set |
| 19647 | + if ('body' not in params) or (params['body'] is None): |
| 19648 | + raise ValueError("Missing the required parameter `body` when calling `post_conversations_call_participant_snippet_record`") |
| 19649 | + |
| 19650 | + |
| 19651 | + resource_path = '/api/v2/conversations/calls/{conversationId}/participants/{participantId}/snippet/record'.replace('{format}', 'json') |
| 19652 | + path_params = {} |
| 19653 | + if 'conversation_id' in params: |
| 19654 | + path_params['conversationId'] = params['conversation_id'] |
| 19655 | + if 'participant_id' in params: |
| 19656 | + path_params['participantId'] = params['participant_id'] |
| 19657 | + |
| 19658 | + query_params = {} |
| 19659 | + |
| 19660 | + header_params = {} |
| 19661 | + |
| 19662 | + form_params = [] |
| 19663 | + local_var_files = {} |
| 19664 | + |
| 19665 | + body_params = None |
| 19666 | + if 'body' in params: |
| 19667 | + body_params = params['body'] |
| 19668 | + |
| 19669 | + # HTTP header `Accept` |
| 19670 | + header_params['Accept'] = self.api_client.\ |
| 19671 | + select_header_accept(['application/json']) |
| 19672 | + if not header_params['Accept']: |
| 19673 | + del header_params['Accept'] |
| 19674 | + |
| 19675 | + # HTTP header `Content-Type` |
| 19676 | + header_params['Content-Type'] = self.api_client.\ |
| 19677 | + select_header_content_type(['application/json']) |
| 19678 | + |
| 19679 | + # Authentication setting |
| 19680 | + auth_settings = ['PureCloud OAuth'] |
| 19681 | + |
| 19682 | + response = self.api_client.call_api(resource_path, 'POST', |
| 19683 | + path_params, |
| 19684 | + query_params, |
| 19685 | + header_params, |
| 19686 | + body=body_params, |
| 19687 | + post_params=form_params, |
| 19688 | + files=local_var_files, |
| 19689 | + response_type='str', |
| 19690 | + auth_settings=auth_settings, |
| 19691 | + callback=params.get('callback')) |
| 19692 | + return response |
| 19693 | + |
19603 | 19694 | def post_conversations_call_participant_voice_consult(self, conversation_id: str, participant_id: str, body: 'ConsultTransferToAddress', **kwargs) -> 'ConsultTransferResponse': |
19604 | 19695 | """ |
19605 | 19696 | Initiate voice consult transfer |
|
0 commit comments