Skip to main content

Java Library

The official Java library wraps the Ollang integration API — projects, uploads, orders, revisions, and custom instructions — using the JDK’s built-in HTTP client, with Gson as the only runtime dependency. Source code lives in the java/ directory of the SDK repository. Requires Java 11+.

Installation

Maven:
Gradle:

Authentication

  1. Sign up or log in at Olabs
  2. Create or select a project
  3. Generate an API key from project settings

Quick Start

Resources

All methods return the parsed JSON response as a Gson JsonElement. Non-2xx responses throw OllangApiException, which carries the HTTP status code and the response body (raw and parsed).

More Examples

For endpoints the library doesn’t wrap yet, the underlying HTTP client is available: ollang.client().get("/integration/supported-languages"). See the full API reference for all endpoints.