diff --git a/livechat/agent/rtm/api/v34.py b/livechat/agent/rtm/api/v34.py index 02983de..3fe6c8c 100644 --- a/livechat/agent/rtm/api/v34.py +++ b/livechat/agent/rtm/api/v34.py @@ -721,45 +721,6 @@ def ban_customer(self, payload = prepare_payload(locals()) return self.ws.send({'action': 'ban_customer', 'payload': payload}) - def follow_customer(self, - id: str = None, - payload: dict = None) -> RtmResponse: - ''' Marks a customer as followed. - - Args: - id (str): ID of the Customer. UUID v4 format is required. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - - Returns: - RtmResponse: RTM response structure (`request_id`, `action`, - `type`, `success` and `payload` properties) - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.ws.send({'action': 'follow_customer', 'payload': payload}) - - def unfollow_customer(self, - id: str = None, - payload: dict = None) -> RtmResponse: - ''' Removes the agent from the list of customer's followers. - - Args: - id (str): ID of the Customer. UUID v4 format is required. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - - Returns: - RtmResponse: RTM response structure (`request_id`, `action`, - `type`, `success` and `payload` properties) - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.ws.send({ - 'action': 'unfollow_customer', - 'payload': payload - }) - # Status def login(self, diff --git a/livechat/agent/rtm/api/v35.py b/livechat/agent/rtm/api/v35.py index 52d3ab1..bfbfa4e 100644 --- a/livechat/agent/rtm/api/v35.py +++ b/livechat/agent/rtm/api/v35.py @@ -721,45 +721,6 @@ def ban_customer(self, payload = prepare_payload(locals()) return self.ws.send({'action': 'ban_customer', 'payload': payload}) - def follow_customer(self, - id: str = None, - payload: dict = None) -> RtmResponse: - ''' Marks a customer as followed. - - Args: - id (str): ID of the Customer. UUID v4 format is required. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - - Returns: - RtmResponse: RTM response structure (`request_id`, `action`, - `type`, `success` and `payload` properties) - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.ws.send({'action': 'follow_customer', 'payload': payload}) - - def unfollow_customer(self, - id: str = None, - payload: dict = None) -> RtmResponse: - ''' Removes the agent from the list of customer's followers. - - Args: - id (str): ID of the Customer. UUID v4 format is required. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - - Returns: - RtmResponse: RTM response structure (`request_id`, `action`, - `type`, `success` and `payload` properties) - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.ws.send({ - 'action': 'unfollow_customer', - 'payload': payload - }) - # Status def login(self, diff --git a/livechat/agent/rtm/api/v36.py b/livechat/agent/rtm/api/v36.py index 93dbde1..b33bf14 100644 --- a/livechat/agent/rtm/api/v36.py +++ b/livechat/agent/rtm/api/v36.py @@ -693,45 +693,6 @@ def ban_customer(self, payload = prepare_payload(locals()) return self.ws.send({'action': 'ban_customer', 'payload': payload}) - def follow_customer(self, - id: str = None, - payload: dict = None) -> RtmResponse: - ''' Marks a customer as followed. - - Args: - id (str): ID of the Customer. UUID v4 format is required. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - - Returns: - RtmResponse: RTM response structure (`request_id`, `action`, - `type`, `success` and `payload` properties) - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.ws.send({'action': 'follow_customer', 'payload': payload}) - - def unfollow_customer(self, - id: str = None, - payload: dict = None) -> RtmResponse: - ''' Removes the agent from the list of customer's followers. - - Args: - id (str): ID of the Customer. UUID v4 format is required. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - - Returns: - RtmResponse: RTM response structure (`request_id`, `action`, - `type`, `success` and `payload` properties) - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.ws.send({ - 'action': 'unfollow_customer', - 'payload': payload - }) - # Status def login(self, diff --git a/livechat/agent/rtm/api/v37.py b/livechat/agent/rtm/api/v37.py index bbe7a42..c62663b 100644 --- a/livechat/agent/rtm/api/v37.py +++ b/livechat/agent/rtm/api/v37.py @@ -693,45 +693,6 @@ def ban_customer(self, payload = prepare_payload(locals()) return self.ws.send({'action': 'ban_customer', 'payload': payload}) - def follow_customer(self, - id: str = None, - payload: dict = None) -> RtmResponse: - ''' Marks a customer as followed. - - Args: - id (str): ID of the Customer. UUID v4 format is required. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - - Returns: - RtmResponse: RTM response structure (`request_id`, `action`, - `type`, `success` and `payload` properties) - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.ws.send({'action': 'follow_customer', 'payload': payload}) - - def unfollow_customer(self, - id: str = None, - payload: dict = None) -> RtmResponse: - ''' Removes the agent from the list of customer's followers. - - Args: - id (str): ID of the Customer. UUID v4 format is required. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - - Returns: - RtmResponse: RTM response structure (`request_id`, `action`, - `type`, `success` and `payload` properties) - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.ws.send({ - 'action': 'unfollow_customer', - 'payload': payload - }) - # Status def login(self, diff --git a/livechat/agent/web/api/v34.py b/livechat/agent/web/api/v34.py index 9c376ed..de2ff7b 100644 --- a/livechat/agent/web/api/v34.py +++ b/livechat/agent/web/api/v34.py @@ -860,60 +860,6 @@ def ban_customer(self, json=payload, headers=headers) - def follow_customer(self, - id: str = None, - payload: dict = None, - headers: dict = None) -> httpx.Response: - ''' Marks a customer as followed. As a result, the requester (an agent) - will receive the info about all the changes related to that customer - via pushes. Once the customer leaves the website or is unfollowed, - the agent will no longer receive that information. - - Args: - id (str): ID of the Customer. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - headers (dict): Custom headers to be used with session headers. - They will be merged with session-level values that are set, - however, these method-level parameters will not be persisted across requests. - - Returns: - httpx.Response: The Response object from `httpx` library, - which contains a server’s response to an HTTP request. - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.session.post(f'{self.api_url}/follow_customer', - json=payload, - headers=headers) - - def unfollow_customer(self, - id: str = None, - payload: dict = None, - headers: dict = None) -> httpx.Response: - ''' Removes the agent from the list of customer's followers. Calling this - method on a customer the agent's chatting with will result in success, - however, the agent will still receive pushes about the customer's data - updates. The unfollowing will take effect once the chat ends. - - Args: - id (str): ID of the Customer. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - headers (dict): Custom headers to be used with session headers. - They will be merged with session-level values that are set, - however, these method-level parameters will not be persisted across requests. - - Returns: - httpx.Response: The Response object from `httpx` library, - which contains a server’s response to an HTTP request. - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.session.post(f'{self.api_url}/unfollow_customer', - json=payload, - headers=headers) - # Status def set_routing_status(self, diff --git a/livechat/agent/web/api/v35.py b/livechat/agent/web/api/v35.py index a6979cb..d501d9e 100644 --- a/livechat/agent/web/api/v35.py +++ b/livechat/agent/web/api/v35.py @@ -860,60 +860,6 @@ def ban_customer(self, json=payload, headers=headers) - def follow_customer(self, - id: str = None, - payload: dict = None, - headers: dict = None) -> httpx.Response: - ''' Marks a customer as followed. As a result, the requester (an agent) - will receive the info about all the changes related to that customer - via pushes. Once the customer leaves the website or is unfollowed, - the agent will no longer receive that information. - - Args: - id (str): ID of the Customer. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - headers (dict): Custom headers to be used with session headers. - They will be merged with session-level values that are set, - however, these method-level parameters will not be persisted across requests. - - Returns: - httpx.Response: The Response object from `httpx` library, - which contains a server’s response to an HTTP request. - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.session.post(f'{self.api_url}/follow_customer', - json=payload, - headers=headers) - - def unfollow_customer(self, - id: str = None, - payload: dict = None, - headers: dict = None) -> httpx.Response: - ''' Removes the agent from the list of customer's followers. Calling this - method on a customer the agent's chatting with will result in success, - however, the agent will still receive pushes about the customer's data - updates. The unfollowing will take effect once the chat ends. - - Args: - id (str): ID of the Customer. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - headers (dict): Custom headers to be used with session headers. - They will be merged with session-level values that are set, - however, these method-level parameters will not be persisted across requests. - - Returns: - httpx.Response: The Response object from `httpx` library, - which contains a server’s response to an HTTP request. - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.session.post(f'{self.api_url}/unfollow_customer', - json=payload, - headers=headers) - # Status def set_routing_status(self, diff --git a/livechat/agent/web/api/v36.py b/livechat/agent/web/api/v36.py index 8410549..8796958 100644 --- a/livechat/agent/web/api/v36.py +++ b/livechat/agent/web/api/v36.py @@ -819,60 +819,6 @@ def ban_customer(self, json=payload, headers=headers) - def follow_customer(self, - id: str = None, - payload: dict = None, - headers: dict = None) -> httpx.Response: - ''' Marks a customer as followed. As a result, the requester (an agent) - will receive the info about all the changes related to that customer - via pushes. Once the customer leaves the website or is unfollowed, - the agent will no longer receive that information. - - Args: - id (str): ID of the Customer. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - headers (dict): Custom headers to be used with session headers. - They will be merged with session-level values that are set, - however, these method-level parameters will not be persisted across requests. - - Returns: - httpx.Response: The Response object from `httpx` library, - which contains a server’s response to an HTTP request. - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.session.post(f'{self.api_url}/follow_customer', - json=payload, - headers=headers) - - def unfollow_customer(self, - id: str = None, - payload: dict = None, - headers: dict = None) -> httpx.Response: - ''' Removes the agent from the list of customer's followers. Calling this - method on a customer the agent's chatting with will result in success, - however, the agent will still receive pushes about the customer's data - updates. The unfollowing will take effect once the chat ends. - - Args: - id (str): ID of the Customer. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - headers (dict): Custom headers to be used with session headers. - They will be merged with session-level values that are set, - however, these method-level parameters will not be persisted across requests. - - Returns: - httpx.Response: The Response object from `httpx` library, - which contains a server’s response to an HTTP request. - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.session.post(f'{self.api_url}/unfollow_customer', - json=payload, - headers=headers) - # Status def set_routing_status(self, diff --git a/livechat/agent/web/api/v37.py b/livechat/agent/web/api/v37.py index 198f484..79c527c 100644 --- a/livechat/agent/web/api/v37.py +++ b/livechat/agent/web/api/v37.py @@ -819,60 +819,6 @@ def ban_customer(self, json=payload, headers=headers) - def follow_customer(self, - id: str = None, - payload: dict = None, - headers: dict = None) -> httpx.Response: - ''' Marks a customer as followed. As a result, the requester (an agent) - will receive the info about all the changes related to that customer - via pushes. Once the customer leaves the website or is unfollowed, - the agent will no longer receive that information. - - Args: - id (str): ID of the Customer. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - headers (dict): Custom headers to be used with session headers. - They will be merged with session-level values that are set, - however, these method-level parameters will not be persisted across requests. - - Returns: - httpx.Response: The Response object from `httpx` library, - which contains a server’s response to an HTTP request. - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.session.post(f'{self.api_url}/follow_customer', - json=payload, - headers=headers) - - def unfollow_customer(self, - id: str = None, - payload: dict = None, - headers: dict = None) -> httpx.Response: - ''' Removes the agent from the list of customer's followers. Calling this - method on a customer the agent's chatting with will result in success, - however, the agent will still receive pushes about the customer's data - updates. The unfollowing will take effect once the chat ends. - - Args: - id (str): ID of the Customer. - payload (dict): Custom payload to be used as request's data. - It overrides all other parameters provided for the method. - headers (dict): Custom headers to be used with session headers. - They will be merged with session-level values that are set, - however, these method-level parameters will not be persisted across requests. - - Returns: - httpx.Response: The Response object from `httpx` library, - which contains a server’s response to an HTTP request. - ''' - if payload is None: - payload = prepare_payload(locals()) - return self.session.post(f'{self.api_url}/unfollow_customer', - json=payload, - headers=headers) - # Status def set_routing_status(self,