That client library provides simple access to Discogs API on Java with asynchronous processing that build on Completable Futures.
// create api client
DiscogsApi api = new DefaultDiscogsApi.Builder()
.setPersonalAccessToken("your_token_may_placed_here")
.build();
// try to make request and identify yourself
JsonNode identity = api.user().identity().identifyYourself().executeAsync().join().entity();
// query database for some useful data
JsonNode searchResults = api.database().search().query("Tiny Moving Parts").build().executeAsync().join().entity();
searchResults.withArray("results").forEach(json -> System.out.println(json.get("title")));
// ...
Watch out releases to see some implemented API versions and features.
The artifact is available through Maven Central Repository Search via Sonatype.
<dependency>
<groupId>io.github.drewlakee</groupId>
<artifactId>discojx</artifactId>
<version>1.0.2</version>
</dependency>
implementation 'io.github.drewlakee:discojx:1.0.2'