Documentation ¶
Index ¶
- type User
- func (u *User) GetFriends(page int) (fi *friendInfo, err error)
- func (u *User) GetInfo() (ui *userInfo, err error)
- func (u *User) GetLovedTracks(page int) (lt *lovedTracks, err error)
- func (u *User) GetPersonalTags(tag string, taggingType string, page int) (pt *personalTags, err error)
- func (u *User) GetRecentTracks(extended bool, page int) (rt *recentTracks, err error)
- func (u *User) GetTopAlbums(period string, page int) (ta *topAlbums, err error)
- func (u *User) GetTopArtists(period string, page int) (ta *topArtists, err error)
- func (u *User) GetTopTags() (tt *topTags, err error)
- func (u *User) GetTopTracks(period string, page int) (tt *topTracks, err error)
- func (u *User) GetWeeklyAlbumChart(from, to int64) (wac *weeklyAlbumChart, err error)
- func (u *User) GetWeeklyArtistChart(from, to int64) (wac *weeklyArtistChart, err error)
- func (u *User) GetWeeklyChartList() (wcl *weeklyChartList, err error)
- func (u *User) GetWeeklyTrackChart(from, to int64) (wtc *weeklyTrackChart, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Username string // contains filtered or unexported fields }
User represents a structure to help query the `user` LastFM API functions.
func New ¶
New returns an instance of the `user` API endpoint functions for LastFM.
func (*User) GetFriends ¶
GetFriends fetches a list of friends from LastFM
func (*User) GetInfo ¶
GetInfo fetches user information from LastFM
func (*User) GetLovedTracks ¶
GetLovedTracks fetches tracks loved by the user from LastFM
func (*User) GetPersonalTags ¶
func (u *User) GetPersonalTags(tag string, taggingType string, page int) (pt *personalTags, err error)
GetPersonalTags fetches metadata for the user's user-applied tags from LastFM, for the provided tag and taggingType
taggingType needs to be either of `artist`, `album`, or `track`.
func (*User) GetRecentTracks ¶
GetRecentTracks fetches a list of recent tracks listened to by the user from LastFM. Includes the current playing track.
func (*User) GetTopAlbums ¶
GetTopAlbums fetches a list of top albums listened to by the user from LastFM for the specified period.
func (*User) GetTopArtists ¶
GetTopArtists fetches a list of top artists listened to by the user from LastFM for the specified period.
period needs to be either of `overall`, `7day`, `1month`, `3month`, `6month`, `12month`.
func (*User) GetTopTags ¶
GetTopTags fetches top tags used by the user on LastFM.
func (*User) GetTopTracks ¶
GetTopTracks fetches a list of top tracks listened to by the user from LastFM for the specified period.
period needs to be either of `overall`, `7day`, `1month`, `3month`, `6month`, `12month`.
func (*User) GetWeeklyAlbumChart ¶
GetWeeklyAlbumChart fetches album chart for the user from LastFM for the given date range (from, to)
from and to need to be the time period for the album chart to fetch in unixtime.
func (*User) GetWeeklyArtistChart ¶
GetWeeklyArtistChart fetches artist chart for the user from LastFM for the given date range (from, to)
from and to need to be the time period for the artist chart to fetch in unixtime.
func (*User) GetWeeklyChartList ¶
GetWeeklyChartList fetches a list of available charts for the user from LastFM, expressed as date range (from, to) in unixtime.
func (*User) GetWeeklyTrackChart ¶
GetWeeklyTrackChart fetches track chart for the user from LastFM for the given date range (from, to)
from and to need to be the time period for the track chart to fetch in unixtime.