Documentation ¶
Index ¶
Constants ¶
View Source
const ( NowPlayingURL = "http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=%s&limit=1&api_key=%s&format=json" ArtistTagsURL = "http://ws.audioscrobbler.com/2.0/?method=artist.gettoptags&artist=%s&api_key=%s&format=json" )
View Source
const (
ChartsURL = "http://ws.audioscrobbler.com/2.0/?method=user.gettopartists&user=%s&period=7day&limit=5&api_key=%s&format=json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtistTags ¶
type ArtistTags struct { string `json:"name"` } `json:"tag"` } `json:"toptags"` }Tag []struct { Name
type NowPlaying ¶
type NowPlaying struct { Recenttracks struct { Track []struct { Artist struct { Text string `json:"#text"` Mbid string `json:"mbid"` } `json:"artist"` Name string `json:"name"` Album struct { Text string `json:"#text"` Mbid string `json:"mbid"` } `json:"album"` Attr struct { Nowplaying string `json:"nowplaying"` } `json:"@attr"` } `json:"track"` Attr struct { Total string `json:"total"` } `json:"@attr"` } `json:"recenttracks"` Error int `json:"error"` }
type WeeklyCharts ¶
type WeeklyCharts struct { Topartists struct { Artist []struct { Name string `json:"name"` Playcount string `json:"playcount"` Attr struct { Rank string `json:"rank"` } `json:"@attr"` } `json:"artist"` Attr struct { Total string `json:"total"` } `json:"@attr"` } `json:"topartists"` Error int `json:"error"` }
Click to show internal directories.
Click to hide internal directories.