com.tryadhawk:airtable-java

Java client for the Airtable API

Лицензия

Лицензия

Категории

Категории

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

Группа

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

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

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

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

2.0.5
Дата

Дата

Тип

Тип

pom.sha512
Описание

Описание

com.tryadhawk:airtable-java
Java client for the Airtable API
Ссылка на сайт

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

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

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

https://github.com/adHawk/airtable-java

Скачать airtable-java

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
com.google.code.findbugs : jsr305 jar 3.0.2
org.asynchttpclient : async-http-client jar 2.10.5
com.fasterxml.jackson.core : jackson-databind jar 2.10.2
org.reactivestreams : reactive-streams jar 1.0.3
org.slf4j : slf4j-api jar 1.7.30

runtime (1)

Идентификатор библиотеки Тип Версия
io.reactivex.rxjava3 : rxjava jar 3.0.0

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

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

Maven Central master build Test Coverage License

airtable-java

This is a Java API client for Airtable.

The Airtable API provides a simple way of accessing data within Java projects. More information about the Airtable API for a specific Airtable Base can be found at https://airtable.com/api.

Installation

airtable-java is available from Maven Central and requires at least Java 8.

Gradle

Add airtable-java to the dependencies section of your build.gradle:

dependencies {
    ...
    implementation 'com.tryadhawk:airtable-java:2.0.5'
    ...
}

Maven

Add airtable-java to the dependencies section of your pom.xml

<dependencies>
    ...
    <dependency>
        <groupId>com.tryadhawk</groupId>
        <artifactId>airtable-java</artifactId>
        <version>2.0.5</version>
    </dependency>
    ...
</dependencies>

Usage

Creating an Instance

Airtable airtable = Airtable.builder()
    .config(Configuration.builder().apiKey("API_KEY").build())
    .build()
    .buildAsyncTable("BASE_ID", "TABLE_NAME", SomeClass.class);

where API_KEY is the key to authenticate to the Airtable API, BASE_ID is the ID of the Airtable Base (found in Airtable API documentation), TABLE_NAME is the name of the table to access, and SomeClass is the class to map row data to.

See How do I get my API key for details on retrieving your API key

The Airtable class provides factory methods for building both synchronous and asynchronous table clients. Additional configuration settings and customization are available in the Configuration and Airtable classes.

airtable-java uses AsyncHttpClient for HTTP communication, slf4j for logging, Jackson for object mapping, and RxJava for asynchronous programming.

Customizing Column Mapping

airtable-java uses Jackson for mapping row data to objects. For cases where the field name and the column name are different, add @JsonProperty("columnName") to the field to configure the name used for mapping the column to a field.

Request Limits

The Airtable API is limited to 5 requests per second. If you exceed this rate, you will receive a 429 status code and will need to wait 30 seconds before subsequent requests will succeed. By default, airtable-java will automatically wait between 30 and 35 seconds and retry the request up to 5 times.

Building

The library is build with Java 8 and Gradle. Run ./gradlew build in Linux/Mac or gradlew build in Windows.

airtable-java uses Project Lombok for immutable value classes. Additional setup may be required to build using an IDE (IntelliJ, Eclipse).

Contributing

See CONTRIBUTING.md

License

MIT License, see LICENSE

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

Версия
2.0.5
2.0.2