Missed Team ’24? Catch up on announcements here.

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

How to invoke bitbucket api in python when using I login as gmail

t1279k March 22, 2021

I log into my bitbucket using login with gmail. If I need to bitbucket api using python  

 

from atlassian.bitbucket.cloud import Cloud
bitbucket = Cloud( url='https://api.bitbucket.org/', username='myemail@gmail.com', password='mypassword', cloud=True)

 

This does not seems to work how do I authenticate with the api

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 3, 2022

Hi @t1279k 

G'Day!

I believe the URL is incorrect. You should change the URL to "https://api.bitbucket.org/2.0/" and the rest of the URL depends on what API endpoint you wish to call.

For more information on the Bitbucket API endpoint, please check our page at:

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events