Trying to login to bitbucket cloud using the below script and it doesn't work
from atlassian import Bitbucket
bitbucket = Bitbucket(
url='https://api.bitbucket.org/',
username='admin',
password='admin')
data = bitbucket.project_list()
print(data)
Is there updated API for bitbucket cloud that i can use or what python api would support connectivity to bitbucket cloud?
Hi Ali and welcome to the community!
atlassian-python-api is a library that uses our API, but it is not developed or maintained by Atlassian.
That being said, I don't see the script you posted in the library's documentation for Bitbucket Cloud, I think this may be applicable to Bitbucket Server. You can check the script on the following page, below the line "And to Bitbucket Cloud:":
You could also use our API endpoints instead of the library. The documentation of our API is here:
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.