Ohloh Java API

A Java library for the Ohloh service

Лицензия

Лицензия

Группа

Группа

com.github.fedy2
Идентификатор

Идентификатор

johloh
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Ohloh Java API
A Java library for the Ohloh service
Ссылка на сайт

Ссылка на сайт

https://github.com/fedy2/johloh
Система контроля версий

Система контроля версий

https://github.com/fedy2/johloh

Скачать johloh

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.fedy2/johloh/ -->
<dependency>
    <groupId>com.github.fedy2</groupId>
    <artifactId>johloh</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.fedy2/johloh/
implementation 'com.github.fedy2:johloh:1.0.1'
// https://jarcasting.com/artifacts/com.github.fedy2/johloh/
implementation ("com.github.fedy2:johloh:1.0.1")
'com.github.fedy2:johloh:jar:1.0.1'
<dependency org="com.github.fedy2" name="johloh" rev="1.0.1">
  <artifact name="johloh" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.fedy2', module='johloh', version='1.0.1')
)
libraryDependencies += "com.github.fedy2" % "johloh" % "1.0.1"
[com.github.fedy2/johloh "1.0.1"]

Зависимости

test (4)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
org.mockito : mockito-all jar 1.9.5
com.google.guava : guava jar 15.0
xmlunit : xmlunit jar 1.5

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0.1