I want to download a single file from my Bitbucket repository. In the documentary I found the following API call.
https://api.bitbucket.org/1.0/repositories/{accountname}/{repo_slug}/raw/{revision}/{path}
However I struggle to find out what my "accountname", "repo_slug", "revision" and "path" is.
If I open the folder "scripts" in my Bitbucket account the browser displays the following link.
https://example.com/projects/MMMA/repos/iapc_reporting/browse/scripts
For accountname I used "MMMA", for repo_slug "iapc_reporting", for revision the branch "master", and for path "scripts/main.py". The URL now looks like this:
https://api.bitbucket.org/1.0/repositories/MMMA/iapc_reporting/raw/master/scripts/main.py
Unfortunately opening this link in my browser gives me an 404 error. How do I properly buidl this link? If you had a solution with the V2 API that would be even better.