Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JIRA Webhook

akukkuje February 28, 2020

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)}

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events