List of Repos (Public and Private) for an Organization on Github
Are you able to fetch the info using plain curl? E.g. try:
curl -u "your_username" https://api.github.com/orgs/:your_organization/repos?type=private
(this should list only private repos, substitute private
with all
to list all repos, as per the API docs: http://developer.github.com/v3/repos/#list-organization-repositories).
If this works, then you are just having trouble making it work using the ruby library?
If you don't know which organizations a user belongs to, use this API to find out: http://developer.github.com/v3/orgs/#list-user-organizations