我正在尝试使用Github api列出组织的私人仓库。但是我只得到公共资源库作为回报。
以下是网址: https://api.github.com/orgs/github/repos
我还在标题中添加了访问令牌。并给出了正确的范围。
以下是文档: https://developer.github.com/v3/
https://developer.github.com/v3/orgs/#list-organizations-for-the-authenticated-user
答案 0 :(得分:1)
您可以使用Github API:https://developer.github.com/v3/repos/#list-organization-repositories
获取/ orgs /:org / repos
要在预览期间访问存储库可见性,必须在Accept标头中提供自定义媒体类型:
application/vnd.github.nebula-preview+json
您还可以添加type参数来控制可见性: