Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Private Repos From Organization with GitHub API V3

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

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...

Thanks in advance!

like image 529
jjNford Avatar asked Jan 23 '12 17:01

jjNford


1 Answers

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).

like image 106
jjNford Avatar answered Oct 30 '22 19:10

jjNford