You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have an app, using which i am generating an access token/ jwt token i wanted to know thw API for which i can download repository by
1. Commit id
2. branch
Please suggest
Hello @dev works ,
Welcome to the community!
You can use the below endpoint to download a repository .zip file at a specific commit or branch :
https://bitbucket.org/<workspace slug>/<repo slug>/get/<commit hash or branch name>.zip
Following are two examples using curl and providing the authentication headers as a Bearer token:
curl --request GET \
--url 'https://bitbucket.org/<workspace slug>/<repo slug>/get/master.zip' \
--header 'Authorization: Bearer <access token>'
curl --request GET \
--url 'https://bitbucket.org/<workspace slug>/<repo slug>/get/<commit hash>.zip' \
--header 'Authorization: Bearer <access token>'
Hope that helps! Let me know if you have any other questions.
Thank you, @dev works !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @dev works ,
Unfortunately, this API does not yet support using Repository Access tokens for authentication. I went ahead and created a feature request for it, which you can check in the link below:
I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with this policy in mind.
Currently, it's only possible to use the username and app password or OAuth access token as the credentials for authentication for that particular API endpoint.
Let me know in case you have any questions.
Thank you, @dev works !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.