|
140 | 140 | from ..models import MessagingSettingDefaultRequest |
141 | 141 | from ..models import MessagingSettingPatchRequest |
142 | 142 | from ..models import MessagingSettingRequest |
143 | | -from ..models import MessagingStickerEntityListing |
144 | 143 | from ..models import OpenEventNormalizedMessage |
145 | 144 | from ..models import OpenInboundNormalizedEvent |
146 | 145 | from ..models import OpenInboundNormalizedMessage |
@@ -7195,91 +7194,6 @@ def get_conversations_messaging_settings_default(self, **kwargs) -> 'MessagingSe |
7195 | 7194 | callback=params.get('callback')) |
7196 | 7195 | return response |
7197 | 7196 |
|
7198 | | - @deprecated("get_conversations_messaging_sticker is deprecated") |
7199 | | - def get_conversations_messaging_sticker(self, messenger_type: str, **kwargs) -> 'MessagingStickerEntityListing': |
7200 | | - """ |
7201 | | - Get a list of Messaging Stickers (Deprecated) |
7202 | | - This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/ |
7203 | | - |
7204 | | - This method makes a synchronous HTTP request by default. To make an |
7205 | | - asynchronous HTTP request, please define a `callback` function |
7206 | | - to be invoked when receiving the response. |
7207 | | - >>> def callback_function(response): |
7208 | | - >>> pprint(response) |
7209 | | - >>> |
7210 | | - >>> thread = api.get_conversations_messaging_sticker(messenger_type, callback=callback_function) |
7211 | | - |
7212 | | - :param callback function: The callback function |
7213 | | - for asynchronous request. (optional) |
7214 | | - :param str messenger_type: Messenger Type (required) |
7215 | | - :param int page_size: Page size |
7216 | | - :param int page_number: Page number |
7217 | | - :return: MessagingStickerEntityListing |
7218 | | - If the method is called asynchronously, |
7219 | | - returns the request thread. |
7220 | | - """ |
7221 | | - |
7222 | | - all_params = ['messenger_type', 'page_size', 'page_number'] |
7223 | | - all_params.append('callback') |
7224 | | - |
7225 | | - params = locals() |
7226 | | - for key, val in iteritems(params['kwargs']): |
7227 | | - if key not in all_params: |
7228 | | - raise TypeError( |
7229 | | - "Got an unexpected keyword argument '%s'" |
7230 | | - " to method get_conversations_messaging_sticker" % key |
7231 | | - ) |
7232 | | - params[key] = val |
7233 | | - del params['kwargs'] |
7234 | | - |
7235 | | - # verify the required parameter 'messenger_type' is set |
7236 | | - if ('messenger_type' not in params) or (params['messenger_type'] is None): |
7237 | | - raise ValueError("Missing the required parameter `messenger_type` when calling `get_conversations_messaging_sticker`") |
7238 | | - |
7239 | | - |
7240 | | - resource_path = '/api/v2/conversations/messaging/stickers/{messengerType}'.replace('{format}', 'json') |
7241 | | - path_params = {} |
7242 | | - if 'messenger_type' in params: |
7243 | | - path_params['messengerType'] = params['messenger_type'] |
7244 | | - |
7245 | | - query_params = {} |
7246 | | - if 'page_size' in params: |
7247 | | - query_params['pageSize'] = params['page_size'] |
7248 | | - if 'page_number' in params: |
7249 | | - query_params['pageNumber'] = params['page_number'] |
7250 | | - |
7251 | | - header_params = {} |
7252 | | - |
7253 | | - form_params = [] |
7254 | | - local_var_files = {} |
7255 | | - |
7256 | | - body_params = None |
7257 | | - |
7258 | | - # HTTP header `Accept` |
7259 | | - header_params['Accept'] = self.api_client.\ |
7260 | | - select_header_accept(['application/json']) |
7261 | | - if not header_params['Accept']: |
7262 | | - del header_params['Accept'] |
7263 | | - |
7264 | | - # HTTP header `Content-Type` |
7265 | | - header_params['Content-Type'] = self.api_client.\ |
7266 | | - select_header_content_type(['application/json']) |
7267 | | - |
7268 | | - # Authentication setting |
7269 | | - auth_settings = ['PureCloud OAuth'] |
7270 | | - |
7271 | | - response = self.api_client.call_api(resource_path, 'GET', |
7272 | | - path_params, |
7273 | | - query_params, |
7274 | | - header_params, |
7275 | | - body=body_params, |
7276 | | - post_params=form_params, |
7277 | | - files=local_var_files, |
7278 | | - response_type='MessagingStickerEntityListing', |
7279 | | - auth_settings=auth_settings, |
7280 | | - callback=params.get('callback')) |
7281 | | - return response |
7282 | | - |
7283 | 7197 | def get_conversations_messaging_supportedcontent(self, **kwargs) -> 'SupportedContentListing': |
7284 | 7198 | """ |
7285 | 7199 | Get a list of Supported Content profiles |
@@ -15627,6 +15541,84 @@ def post_conversations_email_participant_replace(self, conversation_id: str, par |
15627 | 15541 | callback=params.get('callback')) |
15628 | 15542 | return response |
15629 | 15543 |
|
| 15544 | + def post_conversations_email_reconnect(self, conversation_id: str, **kwargs) -> None: |
| 15545 | + """ |
| 15546 | + Reconnect the user to the most recently disconnected customer on a fully disconnected email conversation |
| 15547 | + |
| 15548 | + |
| 15549 | + This method makes a synchronous HTTP request by default. To make an |
| 15550 | + asynchronous HTTP request, please define a `callback` function |
| 15551 | + to be invoked when receiving the response. |
| 15552 | + >>> def callback_function(response): |
| 15553 | + >>> pprint(response) |
| 15554 | + >>> |
| 15555 | + >>> thread = api.post_conversations_email_reconnect(conversation_id, callback=callback_function) |
| 15556 | + |
| 15557 | + :param callback function: The callback function |
| 15558 | + for asynchronous request. (optional) |
| 15559 | + :param str conversation_id: conversationId (required) |
| 15560 | + :return: None |
| 15561 | + If the method is called asynchronously, |
| 15562 | + returns the request thread. |
| 15563 | + """ |
| 15564 | + |
| 15565 | + all_params = ['conversation_id'] |
| 15566 | + all_params.append('callback') |
| 15567 | + |
| 15568 | + params = locals() |
| 15569 | + for key, val in iteritems(params['kwargs']): |
| 15570 | + if key not in all_params: |
| 15571 | + raise TypeError( |
| 15572 | + "Got an unexpected keyword argument '%s'" |
| 15573 | + " to method post_conversations_email_reconnect" % key |
| 15574 | + ) |
| 15575 | + params[key] = val |
| 15576 | + del params['kwargs'] |
| 15577 | + |
| 15578 | + # verify the required parameter 'conversation_id' is set |
| 15579 | + if ('conversation_id' not in params) or (params['conversation_id'] is None): |
| 15580 | + raise ValueError("Missing the required parameter `conversation_id` when calling `post_conversations_email_reconnect`") |
| 15581 | + |
| 15582 | + |
| 15583 | + resource_path = '/api/v2/conversations/emails/{conversationId}/reconnect'.replace('{format}', 'json') |
| 15584 | + path_params = {} |
| 15585 | + if 'conversation_id' in params: |
| 15586 | + path_params['conversationId'] = params['conversation_id'] |
| 15587 | + |
| 15588 | + query_params = {} |
| 15589 | + |
| 15590 | + header_params = {} |
| 15591 | + |
| 15592 | + form_params = [] |
| 15593 | + local_var_files = {} |
| 15594 | + |
| 15595 | + body_params = None |
| 15596 | + |
| 15597 | + # HTTP header `Accept` |
| 15598 | + header_params['Accept'] = self.api_client.\ |
| 15599 | + select_header_accept(['application/json']) |
| 15600 | + if not header_params['Accept']: |
| 15601 | + del header_params['Accept'] |
| 15602 | + |
| 15603 | + # HTTP header `Content-Type` |
| 15604 | + header_params['Content-Type'] = self.api_client.\ |
| 15605 | + select_header_content_type(['application/json']) |
| 15606 | + |
| 15607 | + # Authentication setting |
| 15608 | + auth_settings = ['PureCloud OAuth'] |
| 15609 | + |
| 15610 | + response = self.api_client.call_api(resource_path, 'POST', |
| 15611 | + path_params, |
| 15612 | + query_params, |
| 15613 | + header_params, |
| 15614 | + body=body_params, |
| 15615 | + post_params=form_params, |
| 15616 | + files=local_var_files, |
| 15617 | + response_type=None, |
| 15618 | + auth_settings=auth_settings, |
| 15619 | + callback=params.get('callback')) |
| 15620 | + return response |
| 15621 | + |
15630 | 15622 | def post_conversations_emails(self, body: 'CreateEmailRequest', **kwargs) -> 'EmailConversation': |
15631 | 15623 | """ |
15632 | 15624 | Create an email conversation |
|
0 commit comments