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" MBIDTagsURL = "http://ws.audioscrobbler.com/2.0/?method=artist.gettoptags&mbid=%s&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"
)
View Source
const (
GetInfoURL = "http://ws.audioscrobbler.com/2.0/?method=artist.getinfo&artist=%s&api_key=%s&format=json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtistTags ¶
type Info ¶
type Info struct { ArtInfo struct { Tags struct { Tag []struct { Name string `json:"name"` URL string `json:"url"` } `json:"tag"` } `json:"tags"` Bio struct { Summary string `json:"summary"` Content string `json:"content"` } `json:"bio"` Name string `json:"name"` URL string `json:"url"` } `json:"artist"` }
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"` Streamable string `json:"streamable"` Mbid string `json:"mbid"` Album struct { Text string `json:"#text"` Mbid string `json:"mbid"` } `json:"album"` URL string `json:"url"` Image []struct { Text string `json:"#text"` Size string `json:"size"` } `json:"image"` Attr struct { Nowplaying string `json:"nowplaying"` } `json:"@attr"` } `json:"track"` Attr struct { User string `json:"user"` Page string `json:"page"` Perpage string `json:"perPage"` Totalpages string `json:"totalPages"` Total string `json:"total"` } `json:"@attr"` } `json:"recenttracks"` Error int `json:"error"` Message string `json:"message"` Links []interface{} `json:"links"` }
type WeeklyCharts ¶
type WeeklyCharts struct { Topartists struct { Artist []struct { Name string `json:"name"` Playcount string `json:"playcount"` Mbid string `json:"mbid"` URL string `json:"url"` Streamable string `json:"streamable"` Image []struct { Text string `json:"#text"` Size string `json:"size"` } `json:"image"` Attr struct { Rank string `json:"rank"` } `json:"@attr"` } `json:"artist"` Attr struct { User string `json:"user"` Page string `json:"page"` Perpage string `json:"perPage"` Totalpages string `json:"totalPages"` Total string `json:"total"` } `json:"@attr"` } `json:"topartists"` Error int `json:"error"` Message string `json:"message"` Links []interface{} `json:"links"` }
Click to show internal directories.
Click to hide internal directories.