Downloading zip file with API using Python

Issue #17560 new
Harald
created an issue

Hello,

I am building an AWS Lambda function that backs up all my repositories on BitBucket. For authentication, I would like to use the OAuth consumer key/secret so I don't have to put my username/password into the Lambda.

I have looked at: https://bitbucket.org/site/master/issues/6548/download-tar-zip-with-oauth-api-token But I could not figure out how to do this. I have also looked at the documentation and could not get any wiser.

I have tried https://api.bitbucket.org/2.0/repositories/hstart/testing/get/master.zip https://bitbucket.org/hstart/testing/get/master.zip

and others with auth: "Authorization":"Bearer ***" ( being the OAuth consumer secret) and also: {key}: {secret}

Can anyone point me in the right direction?

Comments (0)

  1. Log in to comment