【发布时间】:2014-03-21 08:45:26
【问题描述】:
根据 GitHub API 文档,I am requesting the repo scope which gives access to private repositories。
用户会看到以下对话框,其中还提到了私有存储库。他们接受申请。
尽管如此,当使用请求“repo”访问时获得的 oauth 访问令牌时,我只能在 GET https://api.github.com/users/someusername/repos 时看到公共 repos。没有显示私人仓库。
用户帐户是我自己的,我没有撤销访问权限。
如何使用 GitHub API V3 查看私有存储库?
【问题讨论】:
-
您准确调用了哪个 API 端点,您是否检查了所有页面? developer.github.com/v3/#pagination
-
@IvanZuzak 端点在上面添加。我的理解是分页只在 repos 中,不,我不是在分页获取 repos 列表,我会尝试的。谢谢!
标签: authentication github github-api