* @throws Exception
* the exception
*/
public static void main(String[] args) throws Exception {
GitHubServiceFactory factory = GitHubServiceFactory.newInstance();
RepositoryService service = factory.createRepositoryService();
List<Repository> repositories = service.searchRepositories("hadoop");
for (Repository repository : repositories) {
printResult(repository);
}
Map<Language, Long> breakDown = service.getLanguageBreakdown("facebook", "tornado");
System.out.println(breakDown);
ZipInputStream zip = service.getRepositoryArchive("nabeelmukhtar", "github-java-sdk", Repository.MASTER);
ZipEntry entry = null;
while ((entry = zip.getNextEntry()) != null) {
System.out.println(entry.getName());
}
}