I am tying to make a connection via python
import requests
payload = ((‘usr’, ‘administrator’), (‘pwd’, ‘passwd’))
connection = requests.post(‘http://localhost:8000/api/method/login’,data=payload)
print(connection.status_code)
its working but on trying “http://frappe.local:8000/api/method/frappe.auth.get_logged_user” via get , after my connection gives error 403.
zz=requests.get(‘http://frappe.local:8000/api/method/frappe.auth.get_logged_user’)
print(zz.status_code)
Any idea what i am doing wrong ?