#api #lastfm #last-fm #scrobble

rustfm-scrobble

Last.fm Scrobble library for Rust

11 releases

0.9.2 Apr 26, 2019
0.9.1 Nov 20, 2017
0.3.1 Oct 3, 2017
0.3.0 Sep 26, 2017
0.1.2 Feb 25, 2017

#32 in Multimedia

Download history 25/week @ 2019-04-25 2/week @ 2019-05-02 26/week @ 2019-05-09 17/week @ 2019-05-16 22/week @ 2019-05-23 45/week @ 2019-05-30 15/week @ 2019-06-06 56/week @ 2019-06-13 23/week @ 2019-06-20 216/week @ 2019-06-27 132/week @ 2019-07-04 26/week @ 2019-07-11 14/week @ 2019-08-01

82 downloads per month
Used in 1 crate

MIT license

24KB
487 lines

rustfm-scrobble

Latest Version Build Status

rustfm-scrobble is a Last.fm Scrobble API 2.0 library for Rust. It allows easy acccess to the "scrobble" and "now playing" notification endpoints through a simple Rust API.

Usage

rustfm-scrobble exposes a single struct: Scrobbler. Use Scrobbler::new() with your API key and API secret to build a new Scrobbler. Call authenticate() on your Scrobbler with the username & password of the user to record scrobbles against (this matches the UX of most popular clients like Spotify). Once the Scrobbler is authenticated, call now_playing() and scrobble() to update the user's now playing track or log a new scrobbled track. Note that rustfm-scrobble does nothing to enforce Last.fm's scrobble rules , this logic must be implemented by the client program.

Status

rustfm-scrobble is beta quality. It is feature complete (authentication, now playing and scrobbles all work correctly), however remains a work in progress and some public API modifications are expected.

License

MIT license, see ./LICENSE.

Dependencies

~19MB
~419K SLoC