@@ -860,60 +860,6 @@ def ban_customer(self,
860860 json = payload ,
861861 headers = headers )
862862
863- def follow_customer (self ,
864- id : str = None ,
865- payload : dict = None ,
866- headers : dict = None ) -> httpx .Response :
867- ''' Marks a customer as followed. As a result, the requester (an agent)
868- will receive the info about all the changes related to that customer
869- via pushes. Once the customer leaves the website or is unfollowed,
870- the agent will no longer receive that information.
871-
872- Args:
873- id (str): ID of the Customer.
874- payload (dict): Custom payload to be used as request's data.
875- It overrides all other parameters provided for the method.
876- headers (dict): Custom headers to be used with session headers.
877- They will be merged with session-level values that are set,
878- however, these method-level parameters will not be persisted across requests.
879-
880- Returns:
881- httpx.Response: The Response object from `httpx` library,
882- which contains a server’s response to an HTTP request.
883- '''
884- if payload is None :
885- payload = prepare_payload (locals ())
886- return self .session .post (f'{ self .api_url } /follow_customer' ,
887- json = payload ,
888- headers = headers )
889-
890- def unfollow_customer (self ,
891- id : str = None ,
892- payload : dict = None ,
893- headers : dict = None ) -> httpx .Response :
894- ''' Removes the agent from the list of customer's followers. Calling this
895- method on a customer the agent's chatting with will result in success,
896- however, the agent will still receive pushes about the customer's data
897- updates. The unfollowing will take effect once the chat ends.
898-
899- Args:
900- id (str): ID of the Customer.
901- payload (dict): Custom payload to be used as request's data.
902- It overrides all other parameters provided for the method.
903- headers (dict): Custom headers to be used with session headers.
904- They will be merged with session-level values that are set,
905- however, these method-level parameters will not be persisted across requests.
906-
907- Returns:
908- httpx.Response: The Response object from `httpx` library,
909- which contains a server’s response to an HTTP request.
910- '''
911- if payload is None :
912- payload = prepare_payload (locals ())
913- return self .session .post (f'{ self .api_url } /unfollow_customer' ,
914- json = payload ,
915- headers = headers )
916-
917863# Status
918864
919865 def set_routing_status (self ,
0 commit comments