in backend-printing/helper/sap_client.py [0:0]
def get_print_queues(self):
"""Get the print queues of the user
Returns:
list[str]: list of print queues
"""
try:
response = self._call_sap_api(f"{self.api_url}{GET_PRINT_QUEUES}")
return [result["Qname"] for result in response["d"]["results"]]
except Exception as e:
raise Exception(f"Error occurred while getting print queues: {e}")