readr

Unofficial experimental Google Reader API for Java

Лицензия

Лицензия

Группа

Группа

me.shakiba.readr
Идентификатор

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

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

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

0.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

readr
Unofficial experimental Google Reader API for Java
Ссылка на сайт

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

http://github.com/shakiba/readr
Система контроля версий

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

http://github.com/shakiba/readr

Скачать readr

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

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

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
org.apache.httpcomponents : httpclient jar 4.2.1
org.scribe : scribe jar 1.3.3
com.google.code.gson : gson jar 2.2.2
com.google.guava : guava jar 14.0
org.slf4j : slf4j-api jar 1.7.2
org.slf4j : slf4j-log4j12 jar 1.7.2

test (1)

Идентификатор библиотеки Тип Версия
org.testng : testng jar 6.8

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

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

readr

Unofficial Google Reader API for Java

Usage

There is a class for each request type and there are two global request super type: API0 and Atom. You can view list of currently available API0 requests and Atom requests.

To execute a request first you need to create a new request object and provide required and optional parameters.

StreamContent req = new StreamContent(StreamId.feed("http://example.com/rss"));

To execute it you need a connection. There are two type of connections: simple and authenticated. Some requests require authenticated connection to be executed.

ApacheHttpClient4Connection simpleConn = new ApacheHttpClient4Connection(2);
// or
OAuthSribeConnection oauthConn = new OAuthSribeConnection(...);

Then to execute it:

Api0Stream stream = req.execute(simpleConn);

Returned objects contain API responses mapped to Java classes and fields:

public class Api0Stream {
    public String direction;
    public StreamId id;
    public String title;
    public String description;
    public String continuation;
    public List<Api0Link> self;
    public List<Api0Link> alternate;
    public long updated;
    public List<Api0Item> items;
}

Common requests parameters are encapsulated in param-set classes and are added to request classes as public final fields:

 req.psStream.setContinuation(...);

Maven

Simply add it to your Maven project dependencies.

<dependency>
    <groupId>me.shakiba.readr</groupId>
    <artifactId>readr</artifactId>
    <version>0.1.0</version>
</dependency>

Credit/Acknowledgments

google-reader-api documentation has been extensively used.

A comprehensive documentation is also available here: http://undoc.in/googlereader.html

TODO

Test classes are incomplete.

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

Версия
0.1.0