GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fedy2/johloh: A Java API for Ohloh

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
johloh
johloh
 
 
README.md
README.md
 
 

Repository files navigation

johloh

A Java API for Ohloh.

Dependency declaration:

<dependency>
  <groupId>com.github.fedy2</groupId>
  <artifactId>johloh</artifactId>
  <version>1.0.1</version>
</dependency>

##Usage

Retrieve an account:

OhlohClient client = new OhlohClient("YOUR API KEY");
Account account = client.getAccount("113399");
System.out.println(account.getName());

Retrieve all the accounts containing the word "Alex" in the name:

OhlohClient client = new OhlohClient("YOUR API KEY");
Query<Account> query = QueryBuilders.accountQuery().query("alex").build();
Iterator<Account> accounts = client.getAccounts(query);
while(accounts.hasNext()) System.out.println(accounts.next().getName());

Retrieve all the projects sorted by name:

OhlohClient client = new OhlohClient("YOUR API KEY");
Query<Project> query = QueryBuilders.projectQuery().sort(ProjectSort.NAME).build();
Iterator<Project> projectIterator = client.getProjects(query);
while(projectIterator.hasNext()) System.out.println(projectIterator.next().getName());

Changelog:

* 1.0.1 fixed the groupId
* 1.0.0 first release

About

A Java API for Ohloh

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.