Need to print get value from REST API

API link

.py function

i need to print the return value “arun” print some where or as a pop up. frappe.msgprint is not working in the white list area.

Hi @ananthu

You can just use print id


i need a GUI message.

Then use msgprint and see the json returned by the request. It should contain the message in one of the variables.

can you please tell me the bug in my code.
.js file

.py file


call on api/method/callfrom_asterisk

hi Sir,
i think the values are now passing from py page to js .but getting some probelms in readign json data.

py file