Bitbucket Api对我不起作用

Bitbucket Api对我不起作用,api,bitbucket,Api,Bitbucket,这是文件: 我使用这个api: GET https://bitbucket.org/api/2.0/repositories/{username}/{repo-slug}/branch-restrictions 其响应为空: {"pagelen": 10, "values": [], "page": 1} 根据这些评论,我知道真正的问题是如何获得分支机构的列表。当您尝试访问版本2.0时,版本1.0支持分支API: https://bitbucket.org/api/1.0/repositor

这是文件:

我使用这个api:

GET https://bitbucket.org/api/2.0/repositories/{username}/{repo-slug}/branch-restrictions
其响应为空:

{"pagelen": 10, "values": [], "page": 1}

根据这些评论,我知道真正的问题是如何获得分支机构的列表。当您尝试访问版本2.0时,版本1.0支持分支API:

https://bitbucket.org/api/1.0/repositories/{username}/{repo-slug}/branches

这是一个有效的回答。你到底想做什么?但它应该有一些内容,在我的回购协议中,有两个分支:master和devYou有两个分支,但没有分支限制…好吧,我如何获得分支信息