I am new to Bitbucket and need to develop python scripts to pull out the codes in our Bitbucket repositories.
can anyone guide me to the right sources which have instructions how to authenticate to connect to our Bitbucket Repositories
our Bitbucket version: 5.9
Thanks for you helps
David
Hey David, welcome to the Community!
You'll want to have a look at our REST API documentation here: https://developer.atlassian.com/server/bitbucket/how-tos/command-line-rest/
If you simply want to pull the source code from your repos via Python, you might be most interested in the archive API endpoint. This provides a zip or tarball of the repository. Documentation for that endpoint specifically is here:
https://docs.atlassian.com/bitbucket-server/rest/6.4.0/bitbucket-rest.html#idp178
Cheers,
Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.