1 unstable release

Uses old Rust 2015

0.1.0 Dec 25, 2016

#9 in #artist

MIT license

45KB
1K SLoC

SongKick Rust

SongKick API library written in Rust

Build Status Coverage

##Usage

Add this in your Cargo.toml:

[dependencies]
songkick = "0.1.0"

... and then this in your crate

extern crate songkick;

##Example

Fetch Artist Info with SongKick ID

use songkick::{SongKick};
use songkick::resources::Artist;
use songkick::endpoints::{SkEndpoint};
let sk = SongKick::new("API_KEY");
//RadioHead ID
let artists : Vec<Artist> = sk.artist.get(253846)
.and_then(|res| Ok(res.collect()))
.expect("Failed to fetch artist with id");
assert_eq!(1,artists.len());

Check more examples here

Dependencies

~6.5MB
~138K SLoC