根据 GitHub API 文档,I am requesting the repo scope which gives access to private repositories .
用户会看到以下对话框,其中还提到了私有(private)仓库。他们接受申请。
尽管如此,当使用请求“repo”访问时获得的 oauth 访问 token 时,我只能在 GET 时看到公共(public) repos https://api.github.com/users/someusername/repos .没有显示私有(private) repo 。
用户帐户是我自己的,我没有撤销访问权限。
如何使用 GitHub API V3 查看私有(private)存储库?
最佳答案
从测试:
这在 GitHub API docs 中没有记录。目前,我只是通过测试发现的。
感谢@ivanzuzak 建议查看端点。
关于authentication - GitHub API : using 'repo' scope, 但仍然看不到私有(private)仓库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21907278/