我们在Stack Overflow Careers上使用GitHub API来引入用户的存储库.我们没有成功引入属于组织的用户存储库.
例如,wycats是jQuery项目的贡献者.然而,通过API 查询他的存储库并没有表明这一点 - jQuery repo归jQuery组织所有.
什么是API调用,以了解wycats是jQuery存储库的贡献者?正确答案将采用URL的形式,该URL返回给定用户名的组织存储库列表.如果需要多次通话,那很好.
谢谢!
我想这就是你要找的。
检查组织成员资格
Run Code Online (Sandbox Code Playgroud)/user/show/:user/organizations [GET]
https://github.com/api/v2/json/user/show/wycats/organizations
列出任何组织的所有公共存储库
Run Code Online (Sandbox Code Playgroud)/organizations/:org/public_repositories [GET]
https://github.com/api/v2/json/organizations/jquery/public_repositories
| 归档时间: |
|
| 查看次数: |
2785 次 |
| 最近记录: |