Is there a way to do GET on url/rest/api/3/webhook using a python script?
I have shared my code here. Am getting 403 error in postman. Please let me know, where am going wrong.
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
def getWebHooks():
url = "https://xxxxxxxx/rest/api/3/webhook"
auth = HTTPBasicAuth("xxx@xxx.com", "abcd")
response = requests.get(url, headers=headers, auth=auth)
return {'Response': "%s"%(response.status_code)}