Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Scala Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
api-base
demo
lastfm-api
musicmetric
project
.gitignore
LICENSE
build.sbt
readme.md
sbt-launch-0.10.0.jar
sbt010

readme.md

Scala Music API Client

This project is a Scala wrapper around several public music web APIs.

Dependencies

SBT (0.7.x)

val guardianSnapshot = "Guardian GitHub Snapshot" at "http://guardian.github.com/maven/repo-snapshots"
val musicApis = "com.gu.arts" %% "music_2.8.1" % "0.1.X-SNAPSHOT" // will get all music API projects
val lastFmApis = "com.gu.arts" %% "lastfm-api_2.8.1" % "0.1.X-SNAPSHOT"
val musicMetricApis = "com.gu.arts" %% "musicmetric-api_2.8.1" % "0.1.X-SNAPSHOT"

Example

Checkout the project, demo, to see how to call the companion objects for the case class wrappers.

Publishing

To publish to your local Maven/IVY repository, when in sbt (using ./sbt10) run the command reload clean compile

publish-local

The newly created package will be available. Update your dependent projects accordingly.

To publish to the Guardian Github repository, ensure you have cloned the Github repository into your home directory like so:

cd ~ && git clone git@github.com:guardian/guardian.github.com.git

Then once again in sbt (using ./sbt10) run the command

publish

This will copy the packages to the directory

~/guardian.github.com

Then change directories to here and add/commit accordingly. You will receive an email from Github when the pages have been launched. You will then be able to reference from your dependent projects.

Something went wrong with that request. Please try again.