SDKs

Java

If you’re working with Java, the official mercoa package is the easiest way to interact with the Mercoa API.

Installation

Gradle users

Add this dependency to your project’s build file:

1implementation 'com.mercoa:mercoa:v0.3.24'

Maven users

Add this dependency to your project’s POM:

1<dependency>
2 <groupId>com.mercoa</groupId>
3 <artifactId>mercoa</artifactId>
4 <version>v0.3.24</version>
5</dependency>

Usage

1MercoaApiClient client = MercoaApiClient.builder()
2 .authKey(System.getenv("MERCOA_API_KEY"))
3 .build();
4
5var response = client.entity().get("YOUR_ENTITY_ID");
6
7System.out.println(response.getId());