Curl 使用REST Api bitbucket从bitbucket下载

Curl 使用REST Api bitbucket从bitbucket下载,curl,bitbucket,bitbucket-api,Curl,Bitbucket,Bitbucket Api,最近我发现我可以使用RESTAPI Bitbucket下载存储库。 我阅读了文档,但到目前为止我没有下载任何文件,而是使用curl下载了一些HTTP头 有人能给我一个关于如何使用API的具体例子吗 我知道这个命令是curlhttps://api.bitbucket.org/2.0/repositories/,但我的bitbucket链接是这样的 http://company repository site/projects/project/repos/repo/ 更新1 ** 我使用curl下载

最近我发现我可以使用RESTAPI Bitbucket下载存储库。 我阅读了文档,但到目前为止我没有下载任何文件,而是使用
curl
下载了一些HTTP头

有人能给我一个关于如何使用API的具体例子吗

我知道这个命令是
curlhttps://api.bitbucket.org/2.0/repositories/
,但我的bitbucket链接是这样的

http://
company repository site
/projects/
project
/repos/
repo
/

更新1

**

我使用curl下载了一个文件,语法是:
curl-u user:passhttp://company_repository_site/projects/my_project/repos/my_repo/my_file.ext?raw
但我仍然想知道如何使用RESTAPI实现这一点

**


谢谢,丹尼尔。

最后,我使用了curl-u用户:pass
bitbucketCompanyServer
/rest/api/1.0/projects/
project
/repos/
存储库
/browse/
fullPathToFileOnBitbucket
?at=
提交
>输出

希望这有帮助