|
85 | 85 | from ..models import ConversationParticipantSearchRequest |
86 | 86 | from ..models import ConversationQuery |
87 | 87 | from ..models import ConversationSecureAttributes |
| 88 | +from ..models import ConversationSummariesGetResponse |
88 | 89 | from ..models import ConversationTagsUpdate |
89 | 90 | from ..models import ConversationThreadingWindow |
90 | 91 | from ..models import ConversationUser |
@@ -2469,6 +2470,85 @@ def get_conversation_suggestions(self, conversation_id: str, **kwargs) -> 'Sugge |
2469 | 2470 | callback=params.get('callback')) |
2470 | 2471 | return response |
2471 | 2472 |
|
| 2473 | + def get_conversation_summaries(self, conversation_id: str, **kwargs) -> 'ConversationSummariesGetResponse': |
| 2474 | + """ |
| 2475 | + Get the summaries of the conversation. |
| 2476 | + |
| 2477 | + get_conversation_summaries is a preview method and is subject to both breaking and non-breaking changes at any time without notice |
| 2478 | + |
| 2479 | + This method makes a synchronous HTTP request by default. To make an |
| 2480 | + asynchronous HTTP request, please define a `callback` function |
| 2481 | + to be invoked when receiving the response. |
| 2482 | + >>> def callback_function(response): |
| 2483 | + >>> pprint(response) |
| 2484 | + >>> |
| 2485 | + >>> thread = api.get_conversation_summaries(conversation_id, callback=callback_function) |
| 2486 | + |
| 2487 | + :param callback function: The callback function |
| 2488 | + for asynchronous request. (optional) |
| 2489 | + :param str conversation_id: Conversation ID (required) |
| 2490 | + :return: ConversationSummariesGetResponse |
| 2491 | + If the method is called asynchronously, |
| 2492 | + returns the request thread. |
| 2493 | + """ |
| 2494 | + |
| 2495 | + all_params = ['conversation_id'] |
| 2496 | + all_params.append('callback') |
| 2497 | + |
| 2498 | + params = locals() |
| 2499 | + for key, val in iteritems(params['kwargs']): |
| 2500 | + if key not in all_params: |
| 2501 | + raise TypeError( |
| 2502 | + "Got an unexpected keyword argument '%s'" |
| 2503 | + " to method get_conversation_summaries" % key |
| 2504 | + ) |
| 2505 | + params[key] = val |
| 2506 | + del params['kwargs'] |
| 2507 | + |
| 2508 | + # verify the required parameter 'conversation_id' is set |
| 2509 | + if ('conversation_id' not in params) or (params['conversation_id'] is None): |
| 2510 | + raise ValueError("Missing the required parameter `conversation_id` when calling `get_conversation_summaries`") |
| 2511 | + |
| 2512 | + |
| 2513 | + resource_path = '/api/v2/conversations/{conversationId}/summaries'.replace('{format}', 'json') |
| 2514 | + path_params = {} |
| 2515 | + if 'conversation_id' in params: |
| 2516 | + path_params['conversationId'] = params['conversation_id'] |
| 2517 | + |
| 2518 | + query_params = {} |
| 2519 | + |
| 2520 | + header_params = {} |
| 2521 | + |
| 2522 | + form_params = [] |
| 2523 | + local_var_files = {} |
| 2524 | + |
| 2525 | + body_params = None |
| 2526 | + |
| 2527 | + # HTTP header `Accept` |
| 2528 | + header_params['Accept'] = self.api_client.\ |
| 2529 | + select_header_accept(['application/json']) |
| 2530 | + if not header_params['Accept']: |
| 2531 | + del header_params['Accept'] |
| 2532 | + |
| 2533 | + # HTTP header `Content-Type` |
| 2534 | + header_params['Content-Type'] = self.api_client.\ |
| 2535 | + select_header_content_type(['application/json']) |
| 2536 | + |
| 2537 | + # Authentication setting |
| 2538 | + auth_settings = ['PureCloud OAuth'] |
| 2539 | + |
| 2540 | + response = self.api_client.call_api(resource_path, 'GET', |
| 2541 | + path_params, |
| 2542 | + query_params, |
| 2543 | + header_params, |
| 2544 | + body=body_params, |
| 2545 | + post_params=form_params, |
| 2546 | + files=local_var_files, |
| 2547 | + response_type='ConversationSummariesGetResponse', |
| 2548 | + auth_settings=auth_settings, |
| 2549 | + callback=params.get('callback')) |
| 2550 | + return response |
| 2551 | + |
2472 | 2552 | def get_conversations(self, **kwargs) -> 'ConversationEntityListing': |
2473 | 2553 | """ |
2474 | 2554 | Get active conversations for the logged in user |
|
0 commit comments