Struct rustfm_scrobble::Scrobbler
[−]
[src]
pub struct Scrobbler { /* fields omitted */ }
Submits song-play tracking information to Last.fm
Methods
impl Scrobbler
[src]
fn new(api_key: String, api_secret: String) -> Scrobbler
[src]
Creates a new Scrobbler with the given Last.fm API Key and API Secret
fn authenticate(
&mut self,
username: String,
password: String
) -> Result<SessionResponse, ScrobblerError>
[src]
&mut self,
username: String,
password: String
) -> Result<SessionResponse, ScrobblerError>
Uses the given username and password (for the user to log scrobbles against), plus the API key and API secret to authenticate with Last.fm API using 'getMobileSession' authentication scheme.
fn now_playing(
&self,
scrobble: Scrobble
) -> Result<NowPlayingResponse, ScrobblerError>
[src]
&self,
scrobble: Scrobble
) -> Result<NowPlayingResponse, ScrobblerError>
Registers the given track by the given artist as the currently authenticated user's "now playing" track.
fn scrobble(
&self,
scrobble: Scrobble
) -> Result<ScrobbleResponse, ScrobblerError>
[src]
&self,
scrobble: Scrobble
) -> Result<ScrobbleResponse, ScrobblerError>
Registers a scrobble (play) of the track with the given title by the given artist in the account of the currently authenticated user at the current time.
fn scrobble_batch(
&self,
batch: ScrobbleBatch
) -> Result<BatchScrobbleResponse, ScrobblerError>
[src]
&self,
batch: ScrobbleBatch
) -> Result<BatchScrobbleResponse, ScrobblerError>