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:

implementation 'com.mercoa:mercoa:0.3.6'

Maven users

Add this dependency to your project's POM:

<dependency>
<groupId>com.mercoa</groupId>
<artifactId>mercoa</artifactId>
<version>0.3.6</version>
</dependency>

Usage

MercoaApiClient client = MercoaApiClient.builder()
.authKey(System.getenv("MERCOA_API_KEY"))
.build();
var response = client.entity().get("YOUR_ENTITY_ID");
System.out.println(response.getId());