lastfm

package module
v0.0.0-...-98b065c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2015 License: MIT Imports: 5 Imported by: 1

README

Go lastfm library

Not complete, only gets Recent tracks from the last.fm api.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LastfmApi

type LastfmApi struct {
	LastfmUser string
	LastfmKey  string
}

LastfmApi struct for the api.

func New

func New(lastfmUser, lastfmKey string) *LastfmApi

New returns a new Lastfm instance with the given LastfmUser and LastfmKey.

func (*LastfmApi) GetCurrentArtistAndTrackName

func (fm *LastfmApi) GetCurrentArtistAndTrackName() (string, string, error)

GetCurrentArtistAndTrackName returns the current artist name and track name of the track that is currently playing.

func (*LastfmApi) GetLastPlayedDate

func (fm *LastfmApi) GetLastPlayedDate() (string, error)

GetLastPlayedDate returns the date of the last song that was played.

func (*LastfmApi) IsNowPlaying

func (fm *LastfmApi) IsNowPlaying() (bool, error)

IsNowPlaying returns the current track that is playing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL