Need to print get value from REST API

API link

http://192.168.20.97:8080/api/method/library_management.library_management.doctype.library_customers.library_customers.id?id=arun

.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

-Anand.

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

shell

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