@@ -7693,9 +7693,93 @@ def patch_conversations_messaging_integrations_facebook_integration_id(self, int
76937693 callback = params .get ('callback' ))
76947694 return response
76957695
7696+ def patch_conversations_messaging_integrations_twitter_integration_id (self , integration_id , body , ** kwargs ):
7697+ """
7698+ Update Twitter messaging integration
7699+
7700+
7701+ This method makes a synchronous HTTP request by default. To make an
7702+ asynchronous HTTP request, please define a `callback` function
7703+ to be invoked when receiving the response.
7704+ >>> def callback_function(response):
7705+ >>> pprint(response)
7706+ >>>
7707+ >>> thread = api.patch_conversations_messaging_integrations_twitter_integration_id(integration_id, body, callback=callback_function)
7708+
7709+ :param callback function: The callback function
7710+ for asynchronous request. (optional)
7711+ :param str integration_id: Integration ID (required)
7712+ :param TwitterIntegrationRequest body: TwitterIntegrationRequest (required)
7713+ :return: TwitterIntegration
7714+ If the method is called asynchronously,
7715+ returns the request thread.
7716+ """
7717+
7718+ all_params = ['integration_id' , 'body' ]
7719+ all_params .append ('callback' )
7720+
7721+ params = locals ()
7722+ for key , val in iteritems (params ['kwargs' ]):
7723+ if key not in all_params :
7724+ raise TypeError (
7725+ "Got an unexpected keyword argument '%s'"
7726+ " to method patch_conversations_messaging_integrations_twitter_integration_id" % key
7727+ )
7728+ params [key ] = val
7729+ del params ['kwargs' ]
7730+
7731+ # verify the required parameter 'integration_id' is set
7732+ if ('integration_id' not in params ) or (params ['integration_id' ] is None ):
7733+ raise ValueError ("Missing the required parameter `integration_id` when calling `patch_conversations_messaging_integrations_twitter_integration_id`" )
7734+ # verify the required parameter 'body' is set
7735+ if ('body' not in params ) or (params ['body' ] is None ):
7736+ raise ValueError ("Missing the required parameter `body` when calling `patch_conversations_messaging_integrations_twitter_integration_id`" )
7737+
7738+
7739+ resource_path = '/api/v2/conversations/messaging/integrations/twitter/{integrationId}' .replace ('{format}' , 'json' )
7740+ path_params = {}
7741+ if 'integration_id' in params :
7742+ path_params ['integrationId' ] = params ['integration_id' ]
7743+
7744+ query_params = {}
7745+
7746+ header_params = {}
7747+
7748+ form_params = []
7749+ local_var_files = {}
7750+
7751+ body_params = None
7752+ if 'body' in params :
7753+ body_params = params ['body' ]
7754+
7755+ # HTTP header `Accept`
7756+ header_params ['Accept' ] = self .api_client .\
7757+ select_header_accept (['application/json' ])
7758+ if not header_params ['Accept' ]:
7759+ del header_params ['Accept' ]
7760+
7761+ # HTTP header `Content-Type`
7762+ header_params ['Content-Type' ] = self .api_client .\
7763+ select_header_content_type (['application/json' ])
7764+
7765+ # Authentication setting
7766+ auth_settings = ['PureCloud OAuth' ]
7767+
7768+ response = self .api_client .call_api (resource_path , 'PATCH' ,
7769+ path_params ,
7770+ query_params ,
7771+ header_params ,
7772+ body = body_params ,
7773+ post_params = form_params ,
7774+ files = local_var_files ,
7775+ response_type = 'TwitterIntegration' ,
7776+ auth_settings = auth_settings ,
7777+ callback = params .get ('callback' ))
7778+ return response
7779+
76967780 def patch_conversations_messaging_integrations_whatsapp_integration_id (self , integration_id , body , ** kwargs ):
76977781 """
7698- Activate a WhatsApp messaging integration.
7782+ Update or activate a WhatsApp messaging integration.
76997783 The following steps are required in order to fully activate a Whatsapp Integration: Initially, you will need to get an activation code by sending: an action set to Activate, and an authenticationMethod choosing from Sms or Voice. Finally, once you have been informed of an activation code on selected authenticationMethod, you will need to confirm the code by sending: an action set to Confirm, and the confirmationCode you have received from Whatsapp.
77007784
77017785 This method makes a synchronous HTTP request by default. To make an
0 commit comments