获取私人回购从组织与GitHub的API V3 [英] Getting Private Repos From Organization with GitHub API V3

查看:107
本文介绍了获取私人回购从组织与GitHub的API V3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有麻烦获取和组织私人回购协议。我使用的API V3使用这种方法: http://share.jjnford.com/HhIZ

I am having trouble obtaining and organizing private repos. I am using API V3 with this method: http://share.jjnford.com/HhIZ

我使用jQuery.getJSON命令,并通过我的OAuth2访问令牌API URL,但我只得到公共仓库的回报。

I am using the jQuery.getJSON command and passing my OAuth2 access token to the API URL but am only getting public repositories returns.

另外,如果我叉私人机构库到用户帐户(上下文),拉动用户库中的所有回购(公众&安培;私营)。显示除了从组织分支的私人回购

Also if I fork a private organization repository to a user account (context) and pull the users repositories all the repos (public & private) show up except the private repo forked from an organization.

任何人可以帮助我这...这是我的最后一关...

Can anybody help me out with this... it is my last hurdle...

在此先感谢!

推荐答案

我已经找到了问题并纠正它。根据该 GitHub的API V3有可以使用多个范围。看来用户的范围不再有效。有一次,我用只是回购范围内一切正常检索(私人组织回购,以及私人组织分叉回购)。

I have found the problem and corrected it. According the the GitHub API V3 there are multiple scopes that can be used. It seems the the "user" scope is not valid anymore. Once I used just the "repo" scope everything was retrieved correctly (private org repos, and private forked org repos).

这篇关于获取私人回购从组织与GitHub的API V3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆