thetvdb-java

TheTVDB API wrapper in Java written using retrofit 2.

Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

com.uwetrottmann.thetvdb-java
Идентификатор

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

thetvdb-java
Последняя версия

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

2.4.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

thetvdb-java
TheTVDB API wrapper in Java written using retrofit 2.
Ссылка на сайт

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

https://github.com/UweTrottmann/thetvdb-java
Система контроля версий

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

https://github.com/UweTrottmann/thetvdb-java

Скачать thetvdb-java

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

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

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.squareup.retrofit2 : retrofit jar 2.6.2
com.squareup.retrofit2 : converter-gson jar 2.6.2

provided (1)

Идентификатор библиотеки Тип Версия
com.google.code.findbugs : jsr305 jar 3.0.2

test (3)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.13
com.google.truth : truth jar 1.0.1
com.squareup.okhttp3 : logging-interceptor jar 3.12.0

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

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

Pull requests (for example to support more API endpoints, bug fixes) are welcome!

thetvdb-java

TheTVDB.com REST API wrapper written in Java using retrofit.

Last tested to work with API version: 3.0.0

Supported endpoints

Usage

Available on Maven Central

Get via Gradle:

implementation 'com.uwetrottmann.thetvdb-java:thetvdb-java:2.4.0'

Or Maven:

<dependency>
    <groupId>com.uwetrottmann.thetvdb-java</groupId>
    <artifactId>thetvdb-java</artifactId>
    <version>2.4.0</version>
</dependency>

Use like any other retrofit based service. Automatically gets a JSON web token so you only need to supply your API key. For example:

TheTvdb theTvdb = new TheTvdb(API_KEY);
try {
    Response<SeriesResponse> response = theTvdb.series()
        .series(83462, "en")
        .execute();
    if (response.isSuccessful()) {
        Series series = response.body().data;
        System.out.println(series.seriesName + " is awesome!");
    }
} catch (Exception e) {
    // see execute() javadoc 
}

Android

This library ships Java 8 bytecode. This requires Android Gradle Plugin 3.2.x or newer.

Use Proguard, R8!

It is likely not every method in this library is used, so it is probably useful to strip unused ones with Proguard. Apply the Proguard rules for retrofit.

Due to R8 being very eager in stripping unused fields even if they are set by a constructor (like LoginData), prevent entities from getting optimized. Obviously they also should not be obfuscated.

-keep class com.uwetrottmann.thetvdb.entities.** { *; }

License

This work by Uwe Trottmann is licensed under the Apache License 2.0.

Contributors and changes are tracked by Git.

Do not just copy, make it better.

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

Версия
2.4.0
2.3.0
2.2.0
2.1.0
2.0.0
1.6.1
1.6.0
1.5.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0