REST calls from erpnext/frappe - How to call POST/GET requests and get the response?

I’ve implemented a server side script to call external service via rest api. Here is my code.


I think this call is working but I have no idea how to get the response for my rest call. Could you please help me to get the response?

Thank you in advance.