Skip to content

RustRome/songkick-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SongKick Rust

SongKick API library written in Rust


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

About

SongKick API Client written in Rust

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages