Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

0 votes
Answer accepted
Deleted user February 15, 2022

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events