1. Bitbucket
  2. Public Issue Tracker
  3. master
  4. Issues

Issues

Issue #8889 duplicate

Download tar using oauth token.

Joseph Newing
created an issue

I need a way to download a repo at a .tar.gz for users who have granted OAuth Accesss..

I am unable to get this to work at all.

Page I'm requesting is as follows: https://bitbucket.org/{owner}/{repo}/get/master.tar.gz

I wish to access this page using OAuth token that I already have for the user. as I added the following to my http header

Authorization: OAuth oauth_consumer_key=mykeyhere, oauth_nonce=JcPolK7L72quQxNkQN4mUTqsz7ZfqQu1, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1390421341, oauth_version=1.0, oauth_token=userstoken, oauth_signature=GqtswjvlprHz9ft9fPXE%2FudrrdE%3D

Comments (3)

  1. Brian Nguyen

    Hi Joseph,

    The only way to achieve this is with an API endpoint for downloads. Unfortunately, we don't yet have such an endpoint.

    There is an open issue at #7592. Please watch the issue for any updates.

    Cheers, Brian

  2. Log in to comment