The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events