I've been able to successfully authenticate and use other areas of the 2.0 API and now I need to use the API do the equivalent of the "Download repository" link on the "Downloads" section in the UI. I just need a copy of the files, not a clone of the complete repository.
Using the 2.0 API I have the following:
https://api.bitbucket.org/2.0/repositories/{username}/{repository}/downloads
I can successfully use the call above but it returns the data below, implying there aren't any downloads.
{"pagelen": 10, "values": [], "page": 1, "size": 0}
What do I need to do to get a zip of all of the files in the repository? Thanks.