访问GitHub私有存储库的信息

时间:2019-06-13 11:42:03

标签: github

我想通过GitHub API获取我的私有存储库的信息。是否有使用API​​密钥或其他解决方案的解决方案? 我的api网址:

https://api.github.com/repos/{user}/{private repo}

我尝试过:

https://api.github.com/repos/{user}/{private repo}?client_id=xxxx&client_secret=yyyy

https://api.github.com/repos/{user}/{private repo}&access_token=YYYY

但是我总是收到“未找到”消息

1 个答案:

答案 0 :(得分:0)

经过多次测试,我找到了解决方案:

https://api.github.com/repos/{user}/{private repo}?access_token=YYYY

我认为第一个get参数是repos。

相关问题