We have a private repository on bitbucket with downloads in the downloads section.
How can we download those files via a script.
There is an API for that:
https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/downloads/%7Bfilename%7D
Just remember to also put '-O' in the curl request, or else it won't download.
It looks like you're new here. Sign in or register to get started.