Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions livechat/agent/rtm/api/v34.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
39 changes: 0 additions & 39 deletions livechat/agent/rtm/api/v35.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
39 changes: 0 additions & 39 deletions livechat/agent/rtm/api/v36.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
39 changes: 0 additions & 39 deletions livechat/agent/rtm/api/v37.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
54 changes: 0 additions & 54 deletions livechat/agent/web/api/v34.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
54 changes: 0 additions & 54 deletions livechat/agent/web/api/v35.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
54 changes: 0 additions & 54 deletions livechat/agent/web/api/v36.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading