Documentation ¶
Index ¶
- type Tag
- func (t *Tag) GetInfo(tag, lang string) (ti *tagInfo, err error)
- func (t *Tag) GetSimilar(tag string) (ts *tagSimilar, err error)
- func (t *Tag) GetTopAlbums(tag string, page int) (tta *tagTopAlbums, err error)
- func (t *Tag) GetTopArtists(tag string, page int) (tta *tagTopArtists, err error)
- func (t *Tag) GetTopTags() (tt *tagTopTags, err error)
- func (t *Tag) GetTopTracks(tag string, page int) (ttt *tagTopTracks, err error)
- func (t *Tag) GetWeeklyChartList(tag string) (twc *tagWeeklyChartList, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
Tag represents a structure to help query the `tag` LastFM API functions.
func New ¶
func New(client *lastfm.Client) (tag *Tag)
New returns an instance of the `tag` API endpoint functions for LastFM.
func (*Tag) GetInfo ¶
GetInfo fetches metadata for the provided tag from LastFM.
func (*Tag) GetSimilar ¶
GetSimilar searches for similar tags from LastFM, ranked by similarity and based on listening data.
func (*Tag) GetTopAlbums ¶
GetTopAlbums fetches top albums from LastFM tagged by the provided tag, ordered by tag count.
func (*Tag) GetTopArtists ¶
GetTopArtists fetches top artists from LastFM tagged by the provided tag, ordered by tag count.
func (*Tag) GetTopTags ¶
GetTopTags fetches top tags from LastFM based on popularity.
func (*Tag) GetTopTracks ¶
GetTopTracks fetches top tracks from LastFM tagged by the provided tag, ordered by tag count.