michalvich/deezer-api-client


Java wrapper for deezer api - http://developers.deezer.com/api/

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.michalvich:deezer-api-client:'
	}
	dependencies {
		implementation("com.github.michalvich:deezer-api-client:")
	}
	<dependency>
	    <groupId>com.github.michalvich</groupId>
	    <artifactId>deezer-api-client</artifactId>
	    <version></version>
	</dependency>

                            
    libraryDependencies += "com.github.michalvich" % "deezer-api-client" % ""
        
        

                            
    :dependencies [[com.github.michalvich/deezer-api-client ""]]
        
        

Readme


deezer-api-client

Java wrapper for deezer api - http://developers.deezer.com/api/ supports all GET methods which don't need OAuth authentication

Artist examples


final DeezerClient deezerClient = new DeezerClient(new HttpResourceConnection());

final ArtistId daftPunkArtistId = new ArtistId(27L);

// get Daft Punk - http://api.deezer.com/artist/27
final Artist artist = deezerClient.get(daftPunkArtistId);

// get Daft Punk albums - http://api.deezer.com/artist/27/albums
final Albums daftPunkAlbums = deezerClient.getAlbums(daftPunkArtistId);

// get Daft Punk fans - http://api.deezer.com/artist/27/fans
final Fans daftPunkFans = deezerClient.getFans(daftPunkArtistId);