lastfm

package
v0.0.0-...-5f3cdcf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2018 License: MIT Imports: 6 Imported by: 0

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 {
	Toptags struct {
		Tag []struct {
			Name string `json:"name"`
		} `json:"tag"`
	} `json:"toptags"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL