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: 

Connect Python with bitbucket

Deleted user
February 15, 2022

Hey im trying to connect python with bitbucket but it keep saying that i need to create an app password although im using my app password, what am i doing wrong?


    url = 'https://bitbucket.org/api/2.0/user/'

    headers = {'Content-Type': 'application/json', "Authorization":"Bearer token"}

    r = requests.get(url, auth=('email', 'password'), headers=headers)

    print(r.status_code)

    print(r.text)

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Deleted user
February 15, 2022
TAGS
AUG Leaders

Atlassian Community Events