Skip to content
This repository has been archived by the owner on Nov 13, 2022. It is now read-only.

drewlakee/discojx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DiscoJx - An Asynchronous DiscogsAPI Java Client Library

That client library provides simple access to Discogs API on Java with asynchronous processing that build on Completable Futures.

Quick Start

// 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.

Installation

The artifact is available through Maven Central Repository Search via Sonatype.

Maven

<dependency>
  <groupId>io.github.drewlakee</groupId>
  <artifactId>discojx</artifactId>
  <version>1.0.2</version>
</dependency>

Gradle

implementation 'io.github.drewlakee:discojx:1.0.2'