Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 api-base
Octocat-spinner-32 demo
Octocat-spinner-32 lastfm-api
Octocat-spinner-32 musicmetric
Octocat-spinner-32 project
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 build.sbt
Octocat-spinner-32 readme.md
Octocat-spinner-32 sbt-launch-0.10.0.jar
Octocat-spinner-32 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.