Documentation ¶
Index ¶
- type Album
- func (a *Album) AddTags(artist, album string, tags []string) (err error)
- func (a *Album) GetInfo(artist, album, mbid, lang string) (ai *albumInfo, err error)
- func (a *Album) GetTags(artist, album, mbid string) (at *albumTags, err error)
- func (a *Album) GetTopTags(artist, album, mbid string) (att *albumTopTags, err error)
- func (a *Album) RemoveTag(artist, album, tag string) (err error)
- func (a *Album) Search(artist, album string, page int) (as *albumSearch, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { Username string // contains filtered or unexported fields }
Album represents a structure to help query the `album` LastFM API functions.
func New ¶
New returns an instance of the `album` API endpoint functions for LastFM.
func (*Album) AddTags ¶
AddTags adds tags to an album on LastFM using a list of user supplied tags
func (*Album) GetInfo ¶
GetInfo fetches album metadata from LastFM using artist and album name, or MBID (MusicBrainz ID)
lang needs to be an ISO 639 alpha-2 encoded string (default: en)
func (*Album) GetTags ¶
GetTags fetches user-applied tags on an album from LastFM for the provided artist and album name, or MBID (MusicBrainz ID)
func (*Album) GetTopTags ¶
GetTopTags fetches top tags for the provided album from LastFM, ordered by tag count, based on artist and album name, or MBID (MusicBrainz ID)
func (*Album) RemoveTag ¶
RemoveTag removes the provided user-applied tag from an album on LastFM