thresher

An unofficial API for the Grooveshark music streaming service.

License

License

GroupId

GroupId

co.arcs.groove
ArtifactId

ArtifactId

thresher
Last Version

Last Version

1.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

thresher
An unofficial API for the Grooveshark music streaming service.
Project URL

Project URL

https://github.com/danhawkes/thresher
Source Code Management

Source Code Management

https://github.com/danhawkes/thresher

Download thresher

How to add to project

<!-- https://jarcasting.com/artifacts/co.arcs.groove/thresher/ -->
<dependency>
    <groupId>co.arcs.groove</groupId>
    <artifactId>thresher</artifactId>
    <version>1.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/co.arcs.groove/thresher/
implementation 'co.arcs.groove:thresher:1.2.1'
// https://jarcasting.com/artifacts/co.arcs.groove/thresher/
implementation ("co.arcs.groove:thresher:1.2.1")
'co.arcs.groove:thresher:jar:1.2.1'
<dependency org="co.arcs.groove" name="thresher" rev="1.2.1">
  <artifact name="thresher" type="jar" />
</dependency>
@Grapes(
@Grab(group='co.arcs.groove', module='thresher', version='1.2.1')
)
libraryDependencies += "co.arcs.groove" % "thresher" % "1.2.1"
[co.arcs.groove/thresher "1.2.1"]

Dependencies

compile (4)

Group / Artifact Type Version
com.google.guava : guava jar 15.0
com.belladati : httpclientandroidlib jar 4.3.0
com.fasterxml.jackson.core : jackson-databind jar 2.2.2
com.google.code.findbugs : jsr305 jar 2.0.2

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.mockito : mockito-core jar 1.9.5

Project Modules

There are no modules declared in this project.

Thresher

An unofficial API for Grooveshark, in Java.

Build Status

Download

With Maven:

<dependency>
	<groupId>co.arcs.groove</groupId>
	<artifactId>thresher</artifactId>
	<version>X.X.X</version>
</dependency>

Or Gradle:

compile 'co.arcs.groove:thresher:X.X.X'

Find the latest version on maven central.

Usage

All API requests go through a client object:

client = new Client();

Search

By keyword:

client.search("clair de lune");

For popular songs:

client.searchPopularSongs();

Stream

Get a short-lived song URL:

client.getStreamUrl(Song);

Log in

Log in to get access a user's data:

user = client.login("username", "hunter2");

List the contents of their library and favorites:

user.library().get();
user.favorites().get();

Add or remove songs:

user.library().add(song);
user.library().remove(song);
user.favorites().add(song);
user.favorites().remove(song);

Build / Test

To build and run tests against the real servers:

mvn clean test

Notes

Bug reports and pull requests are much appreciated.
Thanks to sosedoff and contributors for providing API information in their Ruby library.

Licence

Apache 2.0. See LICENCE.txt for details.

Versions

Version
1.2.1