lastfm

package
v0.0.0-...-53e1632 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2016 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ApiResponseStatusOk     = "ok"
	ApiResponseStatusFailed = "failed"
)
View Source
const (
	ErrorAuthRequired          = 50
	ErrorParameterMissing      = 51
	ErrorInvalidTypeOfArgument = 52
)
View Source
const (
	UriApiSecBase  = "https://ws.audioscrobbler.com/2.0/"
	UriApiBase     = "http://ws.audioscrobbler.com/2.0/"
	UriBrowserBase = "https://www.last.fm/api/auth/"
)

Variables

View Source
var Messages = map[int]string{
	50: "This method requires authentication.",
	51: "Required parameter missing. Required: %v, Missing: %v.",
	52: "Invalid type of argument passed. Supported types are int, string and []string.",
}

Functions

This section is empty.

Types

type AlbumGetBuylinks struct {
	XMLName   xml.Name `xml:"affiliations"`
	Physicals []struct {
		SupplierName string `xml:"supplierName"`
		SupplierIcon string `xml:"supplierIcon"`
		Price        struct {
			Currency  string `xml:"currency"`
			Amount    string `xml:"amount"`
			Formatted string `xml:"formatted"`
		} `xml:"price"`
		Buylink  string `xml:"buylink"`
		IsSearch string `xml:"isSearch"`
	} `xml:"physicals>affiliation"`
	Downloads []struct {
		SupplierName string `xml:"supplierName"`
		SupplierIcon string `xml:"supplierIcon"`
		Price        struct {
			Currency  string `xml:"currency"`
			Amount    string `xml:"amount"`
			Formatted string `xml:"formatted"`
		} `xml:"price"`
		Buylink  string `xml:"buylink"`
		IsSearch string `xml:"isSearch"`
	} `xml:"downloads>affiliation"`
}

album.getBuylinks

type AlbumGetInfo

type AlbumGetInfo struct {
	XMLName     xml.Name `xml:"album"`
	Name        string   `xml:"name"`
	Artist      string   `xml:"artist"`
	Id          string   `xml:"id"`
	Mbid        string   `xml:"mbid"`
	Url         string   `xml:"url"`
	ReleaseDate string   `xml:"releasedate"`
	Images      []struct {
		Size string `xml:"size,attr"`
		Url  string `xml:",chardata"`
	} `xml:"image"`
	Listeners string `xml:"listeners"`
	PlayCount string `xml:"plyacount"`
	Tracks    []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		Duration   string `xml:"duration"`
		Mbid       string `xml:"Mbid"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:"streamable"`
		} `xml:"streamable"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
	} `xml:"tracks>track"`
	TopTags []struct {
		Name string `xml:"name"`
		Url  string `xml:"url"`
	} `xml:"toptags>tag"`
	Wiki struct {
		Published string `xml:"published"`
		Summary   string `xml:"summary"`
		Content   string `xml:"content"`
	} `xml:"wiki"`
}

album.getInfo

type AlbumGetShouts

type AlbumGetShouts struct {
	XMLName    xml.Name `xml:"shouts"`
	Artist     string   `xml:"artist,attr"`
	Album      string   `xml:"album,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Shouts     []struct {
		Body   string `xml:"body"`
		Author string `xml:"author"`
		Date   string `xml:"date"`
	} `xml:"shout"`
}

album.getShouts

type AlbumGetTags

type AlbumGetTags struct {
	XMLName xml.Name `xml:"tags"`
	Artist  string   `xml:"artist,attr"`
	Album   string   `xml:"album,attr"`
	Tags    []struct {
		Name string `xml:"name"`
		Url  string `xml:"url"`
	} `xml:"tag"`
}

album.getTags

type AlbumGetTopTags

type AlbumGetTopTags struct {
	XMLName xml.Name `xml:"toptags"`
	Aritist string   `xml:"artist,attr"`
	Album   string   `xml:"album,attr"`
	Tags    []struct {
		Name  string `xml:"name"`
		Count string `xml:"count"`
		Url   string `xml:"url"`
	} `xml:"tag"`
}

album.getTopTags

type AlbumSearch

type AlbumSearch struct {
	XMLName    xml.Name `xml:"results"`
	OpenSearch string   `xml:"opensearch,attr"`
	For        string   `xml:"for,attr"`
	Query      struct {
		Role        string `xml:"role,attr"`
		SearchTerms string `xml:"searchTrems,attr"`
		StartPage   int    `xml:"startPage,attr"`
	} `xml:"Query"`
	TotalResults int `xml:"totalResults"`
	StartIndex   int `xml:"startIndex"`
	ItemsPerPage int `xml:"itemsPerPage"`
	AlbumMatches []struct {
		Name   string `xml:"name"`
		Artist string `xml:"artist"`
		Id     string `xml:"id"`
		Url    string `xml:"url"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Streamable string `xml:"streamable"`
		Mbid       string `xml:"mbid"`
	} `xml:"albummatches>album"`
}

album.search

type Api

type Api struct {
	Album       *albumApi
	Artist      *artistApi
	Chart       *chartApi
	Event       *eventApi
	Geo         *geoApi
	Group       *groupApi
	Library     *libraryApi
	Playlist    *playlistApi
	Radio       *radioApi
	Tag         *tagApi
	Tasteometer *tasteometerApi
	Track       *trackApi
	User        *userApi
	Venue       *venueApi
	// contains filtered or unexported fields
}

func New

func New(key, secret string) (api *Api)

func (Api) GetAuthRequestUrl

func (api Api) GetAuthRequestUrl(callback string) (uri string)

Web app style

func (Api) GetAuthTokenUrl

func (api Api) GetAuthTokenUrl(token string) (uri string)

func (Api) GetSessionKey

func (api Api) GetSessionKey() (sk string)

func (Api) GetToken

func (api Api) GetToken() (token string, err error)

Desktop app style

func (*Api) Login

func (api *Api) Login(username, password string) (err error)

Mobile app style

func (*Api) LoginWithToken

func (api *Api) LoginWithToken(token string) (err error)

Desktop and Web app style

func (*Api) SetSession

func (api *Api) SetSession(sessionkey string)

func (*Api) SetUserAgent

func (api *Api) SetUserAgent(useragent string)

type ApiError

type ApiError struct {
	Code    int    `xml:"code,attr"`
	Message string `xml:",chardata"`
}

type ArtistGetCorrection

type ArtistGetCorrection struct {
	XMLName    xml.Name `xml:"corrections"`
	Correction struct {
		Index  string `xml:"index,attr"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
	} `xml:"correction"`
}

artist.getCorrection

type ArtistGetEvents

type ArtistGetEvents struct {
	XMLName       xml.Name `xml:"events"`
	Geo           string   `xml:"geo,attr"`
	Artist        string   `xml:"artist,attr"`
	FestivalsOnly string   `xml:"festivalsonly,attr"`
	Total         int      `xml:"total,attr"`
	Page          int      `xml:"page,attr"`
	PerPage       int      `xml:"perPage,attr"`
	TotalPages    int      `xml:"totalPages,attr"`
	Events        []struct {
		Id      string `xml:"id"`
		Title   string `xml:"title"`
		Artists struct {
			Headliner string   `xml:"headliner"`
			Artists   []string `xml:"artist"`
		} `xml:"artists"`
		Venue struct {
			Id       string `xml:"id"`
			Name     string `xml:"name"`
			Location struct {
				City       string `xml:"city"`
				Country    string `xml:"country"`
				Street     string `xml:"street"`
				Postalcode string `xml:"postalcode"`
				Point      struct {
					Lat  string `xml:"lat"`
					Long string `xml:"long"`
				} `xml:"point"`
			} `xml:"location"`
			Url         string `xml:"url"`
			Website     string `xml:"website"`
			PhoneNumber string `xml:"phonenumber"`
			Images      []struct {
				Size string `xml:"size,attr"`
				Url  string `xml:",chardata"`
			} `xml:"image"`
		} `xml:"venue"`
		StartDate   string `xml:"startDate"`
		Description string `xml:"description"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Attendance string `xml:"attendance"`
		Reviews    string `xml:"reviews"`
		Tag        string `xml:"tag"`
		Url        string `xml:"url"`
		Website    string `xml:"website"`
		Tickets    []struct {
			Supplier string `xml:"supplier,attr"`
			Url      string `xml",chardata"`
		} `xml:"tickets>ticket"`
		Canceled string   `xml:"canceled"`
		Tags     []string `xml:"tags>tag"`
	} `xml:"event"`
}

artist.getEvents

type ArtistGetInfo

type ArtistGetInfo struct {
	Name   string `xml:"name"`
	Mbid   string `xml:"mbid"`
	Url    string `xml:"url"`
	Images []struct {
		Size string `xml:"size,attr"`
		Url  string `xml:",chardata"`
	} `xml:"image"`
	Streamable string `xml:"streamable"`
	Stats      struct {
		Listeners string `xml:"listeners"`
		Plays     string `xml:"plays"`
	} `xml:"stats"`
	//Similar struct {
	//Artists []struct {
	//Name   string `xml:"name"`
	//Url    string `xml:"url"`
	//Images []struct {
	//Size string `xml:"size,attr"`
	//Url  string `xml:",chardata"`
	//} `xml:"image"`
	//} `xml:"artist"`
	//} `xml:"similar"`
	Similars []struct {
		Name   string `xml:"name"`
		Url    string `xml:"url"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"similar>artist"`
	Tags []struct {
		Name string `xml:"name"`
		Url  string `xml:"url"`
	} `xml:"tags>tag"`
	Bio struct {
		Links []struct {
			Rel string `xml:"rel,attr"`
			Url string `xml:"href,attr"`
		} `xml:"links>link"`
		Published  string `xml:"published"`
		Summary    string `xml:"summary"`
		Content    string `xml:"content"`
		YearFormed string `xml:"yearformed"`
	} `xml:"bio"`
}

artist.getInfo

type ArtistGetPastEvents

type ArtistGetPastEvents struct {
	XMLName       xml.Name `xml:"events"`
	Artist        string   `xml:"artist,attr"`
	Url           string   `xml:"url,attr"`
	Geo           string   `xml:"geo,attr"`
	FestivalsOnly string   `xml:"festivalsonly,attr"`
	Total         int      `xml:"total,attr"`
	Page          int      `xml:"page,attr"`
	PerPage       int      `xml:"perPage,attr"`
	TotalPages    int      `xml:"totalPages,attr"`
	Events        []struct {
		Id      string `xml:"id"`
		Title   string `xml:"title"`
		Artists struct {
			Headliner string   `xml:"headliner"`
			Artists   []string `xml:"artist"`
		} `xml:"artists"`
		Venue struct {
			Id       string `xml:"id"`
			Name     string `xml:"name"`
			Location struct {
				City       string `xml:"city"`
				Country    string `xml:"country"`
				Street     string `xml:"street"`
				Postalcode string `xml:"postalcode"`
				Point      struct {
					Lat  string `xml:"lat"`
					Long string `xml:"long"`
				} `xml:"point"`
			} `xml:"location"`
			Url         string `xml:"url"`
			Website     string `xml:"website"`
			PhoneNumber string `xml:"phonenumber"`
			Images      []struct {
				Size string `xml:"size,attr"`
				Url  string `xml:",chardata"`
			} `xml:"image"`
		} `xml:"venue"`
		StartDate   string `xml:"startDate"`
		Description string `xml:"description"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Attendance string `xml:"attendance"`
		Reviews    string `xml:"reviews"`
		Tag        string `xml:"tag"`
		Url        string `xml:"url"`
		Website    string `xml:"website"`
		Tickets    []struct {
			Supplier string `xml:"supplier,attr"`
			Url      string `xml",chardata"`
		} `xml:"tickets>ticket"`
		Canceled string   `xml:"canceled"`
		Tags     []string `xml:"tags>tag"`
	} `xml:"event"`
}

artist.getPastEvents

type ArtistGetPodcast

type ArtistGetPodcast struct {
	XMLName xml.Name `xml:"rss"`
	Itunes  string   `xml:"itunes,attr"`
	Version string   `xml:"version,attr"`
	Channel struct {
		Title       string `xml:"title"`
		Link        string `xml:"link"`
		Description string `xml:"description"`
		Items       []struct {
			Title string `xml:"title"`
			Guid  struct {
				IdPermalink string `xml:"isPermalink,attr"`
				Guid        string `xml:",chardata"`
			} `xml:"guid"`
			Author    string `xml:"author"`
			Enclosure struct {
				Url    string `xml:"url,attr"`
				Length string `xml:"length,attr"`
				Type   string `xml:"type,attr"`
			}
			Description string `xml:"description"`
			Link        string `xml:"link"`
		} `xml:"item"`
	} `xml:"channel"`
}

artist.getPodcast

type ArtistGetShouts

type ArtistGetShouts struct {
	XMLName    xml.Name `xml:"shouts"`
	Artist     string   `xml:"artist,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Shouts     []struct {
		Body   string `xml:"body"`
		Author string `xml:"author"`
		Date   string `xml:"date"`
	} `xml:"shout"`
}

artist.getShouts

type ArtistGetSimilar

type ArtistGetSimilar struct {
	XMLName  xml.Name `xml:"similarartists"`
	Artist   string   `xml:"artist,attr"`
	Similars []struct {
		Name   string `xml:"name"`
		Mbid   string `xml:"mbid"`
		Match  string `xml:"match"`
		Url    string `xml:"url"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Streamable string `xml:"streamable"`
	} `xml:"artist"`
}

artist.getSimilar

type ArtistGetTags

type ArtistGetTags struct {
	XMLName xml.Name `xml:"tags"`
	Artist  string   `xml:"artist,attr"`
	Tags    []struct {
		Name string `xml:"name"`
		Url  string `xml:"url"`
	} `xml:"tag"`
}

artist.getTags

type ArtistGetTopAlbums

type ArtistGetTopAlbums struct {
	XMLName    xml.Name `xml:"topalbums"`
	Artist     string   `xml:"artist,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Albums     []struct {
		Rank   string `xml:"rank,attr"`
		Name   string `xml:"name"`
		Mbid   string `xml:"mbid"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		PlayCount string `xml:"playcount"`
		Url       string `xml:"url"`
		Images    []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"album"`
}

artist.getTopAlbums

type ArtistGetTopFans

type ArtistGetTopFans struct {
	XMLName xml.Name `xml:"topfans"`
	Artist  string   `xml:"artist,attr"`
	Users   []struct {
		Name     string `xml:"name"`
		RealName string `xml:"realname"`
		Url      string `xml:"url"`
		Images   []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Weight string `xml:"weight"`
	} `xml:"user"`
}

artist.getTopFans

type ArtistGetTopTags

type ArtistGetTopTags struct {
	XMLName xml.Name `xml:"toptags"`
	Artist  string   `xml:"artist,attr"`
	Tags    []struct {
		Name  string `xml:"name"`
		Count string `xml:"count"`
		Url   string `xml:"url"`
	} `xml:"tag"`
}

artist.getTopTags

type ArtistGetTopTracks

type ArtistGetTopTracks struct {
	XMLName    xml.Name `xml:"toptracks"`
	Artist     string   `xml:"artist,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Rank      string `xml:"rank,attr"`
		Name      string `xml:"name"`
		Duration  string `xml:"duration"`
		PlayCount string `xml:"playcount"`
	} `xml:"track"`
}

artist.getTopTracks

type ArtistSearch

type ArtistSearch struct {
	XMLName    xml.Name `xml:"results"`
	OpenSearch string   `xml:"opensearch,attr"`
	For        string   `xml:"for,attr"`
	Query      struct {
		Role        string `xml:"role,attr"`
		SearchTerms string `xml:"searchTrems,attr"`
		StartPage   int    `xml:"startPage,attr"`
	} `xml:"Query"`
	TotalResults  int `xml:"totalResults"`
	StartIndex    int `xml:"startIndex"`
	ItemsPerPage  int `xml:"itemsPerPage"`
	ArtistMatches []struct {
		Name   string `xml:"name"`
		Mbid   string `xml:"mbid"`
		Url    string `xml:"url"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Listeners string `xml:"listeners"`
	} `xml:"artistmatches>artist"`
}

artist.search

type AuthGetMobileSession

type AuthGetMobileSession struct {
	Name       string `xml:"name"` //username
	Key        string `xml:"key"`  //session key
	Subscriber bool   `xml:"subscriber"`
}

auth.getMobileSession

type AuthGetSession

type AuthGetSession AuthGetMobileSession

auth.getSession

type AuthGetToken

type AuthGetToken struct {
	Token string `xml:",chardata"`
}

auth.getToken

type Base

type Base struct {
	XMLName xml.Name `xml:"lfm"`
	Status  string   `xml:"status,attr"`
	Inner   []byte   `xml:",innerxml"`
}

type ChartGetHypedArtists

type ChartGetHypedArtists struct {
	XMLName    xml.Name `xml:"artists"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Artists    []struct {
		Name             string `xml:"name"`
		PercentageChange string `xml:"percentagechange"`
		Mbid             string `xml:"mbid"`
		Streamable       string `xml:"streamable"`
		Images           []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

chart.getHypedArtists

type ChartGetHypedTracks

type ChartGetHypedTracks struct {
	XMLName    xml.Name `xml:"tracks"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Name             string `xml:"name"`
		PercentageChange string `xml:"percentagechange"`
		Mbid             string `xml:"mbid"`
		Url              string `xml:"url"`
		Streamable       string `xml:"streamable"`
		Artist           struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

chart.getHypedTracks

type ChartGetLovedTracks

type ChartGetLovedTracks struct {
	XMLName    xml.Name `xml:"tracks"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Name       string `xml:"name"`
		Loves      int    `xml:"loves"`
		Url        string `xml:"url"`
		Streamable int    `xml:"streamable"`
		Artist     struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

chart.getLovedTracks

type ChartGetTopArtists

type ChartGetTopArtists struct {
	XMLName    xml.Name `xml:"artists"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Artists    []struct {
		Name       string `xml:"name"`
		PlayCount  string `xml:"playcount"`
		Listeners  string `xml:"listeners"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

chart.getTopArtists

type ChartGetTopTags

type ChartGetTopTags struct {
	XMLName    xml.Name `xml:"tags"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tags       []struct {
		Name       string `xml:"name"`
		Url        string `xml:"url"`
		Reach      string `xml:"reach"`
		Taggings   string `xml:"taggings"`
		Streamable string `xml:"streamable"`
		Wiki       struct {
			Published string `xml:"published"`
			Summary   string `xml:"summary"`
			Content   string `xml:"content"`
		} `xml:"wiki"`
	} `xml:"tag"`
}

chart.getTopTags

type ChartGetTopTracks

type ChartGetTopTracks struct {
	XMLName    xml.Name `xml:"tracks"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Name       string `xml:"name"`
		Duration   string `xml:"duration"`
		PlayCount  string `xml:"playcount"`
		Listeners  string `xml:"listeners"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:",chardata"`
		} `xml:"streamable"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

chart.getTopTracks

type EventGetAttendees

type EventGetAttendees struct {
	XMLName    xml.Name `xml:"attendees"`
	Geo        string   `xml:"geo,attr"`
	Event      string   `xml:"event,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Attendees  []struct {
		Name     string `xml:"name"`
		RealName string `xml:"realname"`
		Url      string `xml:"url"`
		Images   []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"user"`
}

event.getAttendees

type EventGetInfo

type EventGetInfo struct {
	XMLName xml.Name `xml:"event"`
	Geo     string   `xml:"geo,attr"`
	Id      string   `xml:"id"`
	Title   string   `xml:"title"`
	Artists struct {
		Headliner string   `xml:"headliner"`
		Artists   []string `xml:"artist"`
	} `xml:"artists"`
	Venue struct {
		Id       string `xml:"id"`
		Name     string `xml:"name"`
		Location struct {
			City       string `xml:"city"`
			Country    string `xml:"country"`
			Street     string `xml:"street"`
			Postalcode string `xml:"postalcode"`
			Point      struct {
				Lat  float64 `xml:"lat"`
				Long float64 `xml:"long"`
			} `xml:"point"`
		} `xml:"location"`
		Url         string `xml:"url"`
		Website     string `xml:"website"`
		PhoneNumber string `xml:"phonenumber"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"venue"`
	StartDate   string `xml:"startDate"`
	Description string `xml:"description"`
	Images      []struct {
		Size string `xml:"size,attr"`
		Url  string `xml:",chardata"`
	} `xml:"image"`
	Attendance string `xml:"attendance"`
	Reviews    string `xml:"reviews"`
	Tag        string `xml:"tag"`
	Url        string
	Website    string `xml:"website"`
	Tickets    []struct {
		Supplier string `xml:"supplier,attr"`
		Url      string `xml",chardata"`
	} `xml:"tickets>ticket"`
	Tags []string `xml:"tags>tag"`
}

event.getInfo

type EventGetShouts

type EventGetShouts struct {
	XMLName    xml.Name `xml:"shouts"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Shouts     []struct {
		Body   string `xml:"body"`
		Author string `xml:"author"`
		Date   string `xml:"date"`
	} `xml:"shout"`
}

event.getShouts

type GeoGetEvents

type GeoGetEvents struct {
	XMLName       xml.Name            `xml:"events"`
	Geo           string              `xml:"geo,attr"`
	Location      string              `xml:"location,attr"`
	Tag           string              `xml:"tag,attr"`
	FestivalsOnly string              `xml:"festivalsonly,attr"`
	Total         int                 `xml:"total,attr"`
	Page          int                 `xml:"page,attr"`
	PerPage       int                 `xml:"perPage,attr"`
	TotalPages    int                 `xml:"totalPages,attr"`
	Events        []GeoGetEventsEvent `xml:"event"`
}

geo.getEvents

type GeoGetEventsEvent

type GeoGetEventsEvent struct {
	Geo     string `xml:"geo,attr"`
	Id      string `xml:"id"`
	Title   string `xml:"title"`
	Artists struct {
		Headliner string   `xml:"headliner"`
		Artists   []string `xml:"artist"`
	} `xml:"artists"`
	Venue struct {
		Id       string `xml:"id"`
		Name     string `xml:"name"`
		Location struct {
			City       string `xml:"city"`
			Country    string `xml:"country"`
			Street     string `xml:"street"`
			Postalcode string `xml:"postalcode"`
			Point      struct {
				Lat  string `xml:"lat"`
				Long string `xml:"long"`
			} `xml:"point"`
		} `xml:"location"`
		Url         string `xml:"url"`
		Website     string `xml:"website"`
		PhoneNumber string `xml:"phonenumber"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"venue"`
	StartDate   string `xml:"startDate"`
	Description string `xml:"description"`
	Images      []struct {
		Size string `xml:"size,attr"`
		Url  string `xml:",chardata"`
	} `xml:"image"`
	Attendance string `xml:"attendance"`
	Reviews    string `xml:"reviews"`
	Tag        string `xml:"tag"`
	Url        string `xml:"url"`
	Website    string `xml:"website"`
	Tickets    []struct {
		Supplier string `xml:"supplier,attr"`
		Url      string `xml",chardata"`
	} `xml:"tickets>ticket"`
	Canceled string   `xml:"canceled"`
	Tags     []string `xml:"tags>tag"`
}

type GeoGetMetroArtistChart

type GeoGetMetroArtistChart struct {
	XMLName    xml.Name `xml:"topartists"`
	Metro      string   `xml:"metro,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Artists    []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `Xml:"name"`
		Listeners  string `xml:"listeners"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

geo.getMetroArtistChart

type GeoGetMetroHypeArtistChart

type GeoGetMetroHypeArtistChart struct {
	XMLName    xml.Name `xml:"topartists"`
	Metro      string   `xml:"metro,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Artists    []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `Xml:"name"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

geo.getMetroHypeArtistChart

type GeoGetMetroHypeTrackChart

type GeoGetMetroHypeTrackChart struct {
	XMLName    xml.Name `xml:"toptracks"`
	Metro      string   `xml:"metro,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		Duration   string `xml:"duration"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:",chardata"`
		} `xml:"streamable"`
		Artist struct {
			Name string `xml:"artist"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

geo.getMetroHypeTrackChart

type GeoGetMetroTrackChart

type GeoGetMetroTrackChart struct {
	XMLName    xml.Name `xml:"toptracks"`
	Metro      string   `xml:"metro,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		Duration   string `xml:"duration"`
		Listeners  string `xml:"listeners"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:",chardata"`
		} `xml:"streamable"`
		Artist struct {
			Name string `xml:"artist"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

geo.getMetroTrackChart

type GeoGetMetroUniqueArtistChart

type GeoGetMetroUniqueArtistChart struct {
	XMLName    xml.Name `xml:"topartists"`
	Metro      string   `xml:"metro,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Artists    []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `Xml:"name"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

geo.getMetroUniqueArtistChart

type GeoGetMetroUniqueTrackChart

type GeoGetMetroUniqueTrackChart struct {
	XMLName    xml.Name `xml:"toptracks"`
	Metro      string   `xml:"metro,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		Duration   string `xml:"duration"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:",chardata"`
		} `xml:"streamable"`
		Artist struct {
			Name string `xml:"artist"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

geo.getMetroUniqueTrackChart

type GeoGetMetroWeeklyChartlist

type GeoGetMetroWeeklyChartlist struct {
	XMLName xml.Name `xml:"weeklychartlist"`
	Charts  []struct {
		From string `xml:"from,attr"`
		To   string `xml:"to,attr"`
	} `xml:"chart"`
}

geo.getMetroWeeklyChartlist

type GeoGetMetros

type GeoGetMetros struct {
	XMLName xml.Name `xml:"metros"`
	Metros  []struct {
		Name    string `xml:"name"`
		Country string `xml:"country"`
	} `xml:"metro"`
}

geo.getMetros

type GeoGetTopArtists

type GeoGetTopArtists struct {
	XMLName    xml.Name `xml:"topartists"`
	Country    string   `xml:"country,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Artists    []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `Xml:"name"`
		Listeners  string `xml:"listeners"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

geo.getTopArtists

type GeoGetTopTracks

type GeoGetTopTracks struct {
	XMLName    xml.Name `xml:"toptracks"`
	Country    string   `xml:"country,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		Duration   string `xml:"duration"`
		Listeners  string `xml:"listeners"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:",chardata"`
		} `xml:"streamable"`
		Artist struct {
			Name string `xml:"artist"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

geo.getTopTracks

type GroupGetHype

type GroupGetHype struct {
	XMLName xml.Name `xml:"weeklyartistchart"`
	From    string   `xml:"from,attr"`
	To      string   `xml:"to,attr"`
	Artist  struct {
		Rank             string `xml:"rank,attr"`
		Name             string `xml:"name"`
		PercentageChange string `xml:"percentagechange"`
		Mbid             string `xml:"mbid"`
		Url              string `xml:"url"`
		Streamable       string `xml:"streamable"`
		Images           []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

group.getHype

type GroupGetMembers

type GroupGetMembers struct {
	XMLName    xml.Name `xml:"members"`
	For        string   `xml:"for,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Members    []struct {
		Name     string `xml:"name"`
		RealName string `xml:"realname"`
		Images   []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"user"`
}

group.getMembers

type GroupGetWeeklyAlbumChart

type GroupGetWeeklyAlbumChart struct {
	XMLName xml.Name `xml:"weeklyalbumchart"`
	Group   string   `xml:"group,attr"`
	From    string   `xml:"from,attr"`
	To      string   `xml:"to,attr"`
	Albums  []struct {
		Rank   string `xml:"rank,attr"`
		Artist struct {
			Mbid string `xml:"mbid,attr"`
			Name string `xml:",chardata"`
		} `xml:"artist"`
		Name      string `xml:"name"`
		Mbid      string `xml:"mbid"`
		PlayCount string `xml:"playcount"`
		Url       string `xml:"url"`
	} `xml:"album"`
}

group.getWeeklyAlbumChart

type GroupGetWeeklyArtistChart

type GroupGetWeeklyArtistChart struct {
	XMLName xml.Name `xml:"weeklyartistchart"`
	Group   string   `xml:"group,attr"`
	From    string   `xml:"from,attr"`
	To      string   `xml:"to,attr"`
	Artists []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		PlayCount  string `xml:"playcount"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

group.getWeeklyArtistChart

type GroupGetWeeklyChartlist

type GroupGetWeeklyChartlist struct {
	XMLName xml.Name `xml:"weeklychartlist"`
	Group   string   `xml:"group,attr"`
	Charts  []struct {
		From string `xml:"from,attr"`
		To   string `xml:"to,attr"`
	} `xml:"chart"`
}

group.getWeeklyChartList

type GroupGetWeeklyTrackChart

type GroupGetWeeklyTrackChart struct {
	XMLName xml.Name `xml:"weeklytrackchart"`
	Group   string   `xml:"group,attr"`
	From    string   `xml:"from,attr"`
	To      string   `xml:"to,attr"`
	Tracks  []struct {
		Rank   string `xml:"rank,attr"`
		Artist struct {
			Mbid string `xml:"mbid,attr"`
			Name string `xml:",chardata"`
		} `xml:"artist"`
		Name      string `xml:"name"`
		Mbid      string `xml:"mbid"`
		PlayCount string `xml:"playcount"`
		Images    []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Url string `xml:"url"`
	} `xml:"track"`
}

group.getWeeklyTrackChart

type LastfmError

type LastfmError struct {
	Code    int
	Message string
	Where   string
	Caller  string
}

func (*LastfmError) Error

func (e *LastfmError) Error() string

type LibraryGetAlbums

type LibraryGetAlbums struct {
	XMLName    xml.Name `xml:"albums"`
	User       string   `xml:"user,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Albums     []struct {
		Name      string `xml:"name"`
		PlayCount string `xml:"playcount"`
		TagCount  string `xml:"tagcount"`
		Mbid      string `xml:"mbid"`
		Url       string `xml:"url"`
		Artist    struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"album"`
}

library.getAlbums

type LibraryGetArtists

type LibraryGetArtists struct {
	XMLName    xml.Name `xml:"artists"`
	User       string   `xml:"user,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Artists    []struct {
		Name       string `xml:"name"`
		PlayCount  string `xml:"playcount"`
		TagCount   string `xml:"tagcount"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

library.getArtists

type LibraryGetTracks

type LibraryGetTracks struct {
	XMLName    xml.Name `xml:"tracks"`
	User       string   `xml:"user,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Name       string `xml:"name"`
		Duration   string `xml:"duration"`
		PlayCount  string `xml:"playcount"`
		TagCount   string `xml:"tagcount"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:"streamable"`
		} `xml:"streamable"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Album struct {
			Name     string `xml:"name"`
			Position string `xml:"position"`
		} `xml:"album"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

library.getTracks

type P

type P map[string]interface{}

type PlaylistCreate

type PlaylistCreate struct {
	XMLName  xml.Name `xml:"playlists"`
	User     string   `xml:"user,attr"`
	Playlist struct {
		Id          string `xml:"id"`
		Title       string `xml:"title"`
		Description string `xml:"description"`
		Date        string `xml:"date"`
		Size        string `xml:"size"`
		Duration    string `xml:"duration"`
		Streamable  string `xml:"streamable"`
		Creator     string `xml:"creator"`
		Url         string `xml:"url"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"playlist"`
}

playlist.create

type RadioGetPlaylist

type RadioGetPlaylist struct {
	XMLName xml.Name `xml:"playlist"`
	Version int      `xml:"version,attr"`
	Title   string   `xml:"title"`
	Creator string   `xml:"creator"`
	Date    string   `xml:"date"`
	Link    struct {
		Rel     string `xml:"rel,attr"`
		Content string `xml:",chardata"`
	}
	Tracks []struct {
		Location  string `xml:"location"`
		Title     string `xml:"title"`
		Id        string `xml:"identifier"`
		Album     string `xml:"album"`
		Creator   string `xml:"creator"`
		Duration  int    `xml:"duration"`
		Image     string `xml:"image"`
		Extension struct {
			Application  string `xml:"application,attr"`
			ArtistPage   string `xml:"artistpage"`
			AlbumPage    string `xml:"albumpage"`
			TrackPage    string `xml:"trackpage"`
			BuyTrackUrl  string `xml:"buyTrackUrl"`
			BuyAlbumUrl  string `xml:"buyAlbumUrl"`
			FreeTrackUrl string `xml:"freeTrackUrl"`
		} `xml:"extension"`
	} `xml:"tracklist"`
}

radio.getPlaylist

type RadioSearch

type RadioSearch struct {
	XMLName xml.Name `xml:"stations"`
	Station struct {
		Name string `xml:"name"`
		Url  string `xml:"url"`
	} `xml:"station"`
}

radio.search

type RadioTune

type RadioTune struct {
	XMLName           xml.Name `xml:"station"`
	Type              string   `xml:"type"`
	Name              string   `xml:"name"`
	Url               string   `xml:"url"`
	SupportsDiscovery string   `xml:"supportsdiscovery"`
}

radio.tune

type TagGetInfo

type TagGetInfo struct {
	XMLName    xml.Name `tag`
	Name       string   `xml:"name"`
	Url        string   `xml:"url"`
	Reach      string   `xml:"reach"`
	Taggings   string   `xml:"taggings"`
	Streamable string   `xml:"streamable"`
	Wiki       struct {
		Published string `xml:"published"`
		Summary   string `xml:"summary"`
		Content   string `xml:"content"`
	} `xml:"wiki"`
}

tag.getinfo

type TagGetSimilar

type TagGetSimilar struct {
	XMLName xml.Name `xml:"similartags"`
	Tag     string   `xml:"tag,attr"`
	Tags    []struct {
		Name       string `xml:"name"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
	} `xml:"tag"`
}

tag.getSimilar

type TagGetTopAlbums

type TagGetTopAlbums struct {
	XMLName    xml.Name `xml:"topalbums"`
	Tag        string   `xml:"tag,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Albums     []struct {
		Rank   string `xml:"rank,attr"`
		Name   string `xml:"name"`
		Url    string `xml:"url"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml"album"`
}

tag.getTopAlbums

type TagGetTopArtists

type TagGetTopArtists struct {
	XMLName xml.Name `xml:"topartists"`
	Tag     string   `xml:"tag,attr"`
	//Total      string   `xml:"total,attr"`
	//Page       string   `xml:"page,attr"`
	//PerPage    string   `xml:"perPage,attr"`
	//TotalPages string   `xml:"totalPages"`
	Artists []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml"artist"`
}

tag.getTopArtists

type TagGetTopTags

type TagGetTopTags struct {
	XMLName xml.Name `xml:"toptags"`
	Tags    []struct {
		Name  string `xml:"name"`
		Count string `xml:"count"`
		Url   string `xml:"url"`
	} `xml:"tag"`
}

tag.getTopTags

type TagGetTopTracks

type TagGetTopTracks struct {
	XMLName    xml.Name `xml:"tracks"`
	Tag        string   `xml:"tag,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		Duration   string `xml:"duration"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:"streamable"`
		} `xml:"streamable"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

tag.getTopTracks

type TagGetWeeklyArtistChart

type TagGetWeeklyArtistChart struct {
	XMLName xml.Name `xml:"weeklyartistchart"`
	From    string   `xml:"from,attr"`
	To      string   `xml:"to,attr"`
	Artists []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		Weight     string `xml:"weight"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

tag.getWeeklyArtistChart

type TagGetWeeklyChartList

type TagGetWeeklyChartList struct {
	XMLName xml.Name `xml:"weeklychartlist"`
	Tag     string   `xml:"tag,attr"`
	Charts  []struct {
		From string `xml:"from,attr"`
		To   string `xml:"to,attr"`
	} `xml:"chart"`
}

tag.getWeeklyChartList

type TagSearch

type TagSearch struct {
	XMLName    xml.Name `xml:"results"`
	OpenSearch string   `xml:"opensearch,attr"`
	For        string   `xml:"for,attr"`
	Query      struct {
		Role        string `xml:"role,attr"`
		SearchTerms string `xml:"searchTrems,attr"`
		StartPage   int    `xml:"startPage,attr"`
	} `xml:"Query"`
	TotalResults int `xml:"totalResults"`
	StartIndex   int `xml:"startIndex"`
	ItemsPerPage int `xml:"itemsPerPage"`
	TagMatches   []struct {
		Name  string `xml:"name"`
		Count string `xml:"count"`
		Url   string `xml:"url"`
	} `xml:"tagmatches>tag"`
}

tag.search

type TasteometerCompare

type TasteometerCompare struct {
	XMLName xml.Name `xml:"comparison"`
	Result  struct {
		Score   string `xml:"score"`
		Artists struct {
			Matches string `xml:"matches,attr"`
			Artists []struct {
				Name   string `xml:"name"`
				Url    string `xml:"url"`
				Images []struct {
					Size string `xml:"size,attr"`
					Url  string `xml:",chardata"`
				} `xml:"image"`
			} `xml:"artist"`
		} `xml:"artists"`
	} `xml:"result"`
}

tasteometer.compare

type TrackGetBuylinks struct {
	XMLName   xml.Name `xml:"affiliations"`
	Physicals []struct {
		SupplierName string `xml:"supplierName"`
		SupplierIcon string `xml:"supplierIcon"`
		Price        struct {
			Currency  string `xml:"currency"`
			Amount    string `xml:"amount"`
			Formatted string `xml:"formatted"`
		} `xml:"price"`
		Buylink  string `xml:"buylink"`
		IsSearch string `xml:"isSearch"`
	} `xml:"physicals>affiliation"`
	Downloads []struct {
		SupplierName string `xml:"supplierName"`
		SupplierIcon string `xml:"supplierIcon"`
		Price        struct {
			Currency  string `xml:"currency"`
			Amount    string `xml:"amount"`
			Formatted string `xml:"formatted"`
		} `xml:"price"`
		Buylink  string `xml:"buylink"`
		IsSearch string `xml:"isSearch"`
	} `xml:"downloads>affiliation"`
}

track.getBuylinks

type TrackGetCorrection

type TrackGetCorrection struct {
	XMLName    xml.Name `xml:"corrections"`
	Correction struct {
		Index           string `xml:"index,attr"`
		ArtistCorrected string `xml:"artistcorrected"`
		TrackCorrected  string `xml:"trackcorrected"`
		Track           struct {
			Name   string `xml:"name"`
			Mbid   string `xml:"mbid"`
			Url    string `xml:"url"`
			Artist struct {
				Name string `xml:"name"`
				Mbid string `xml:"mbid"`
				Url  string `xml:"url"`
			} `xml:"artist"`
		} `xml:"track"`
	} `xml:"correction"`
}

track.getCorrection

type TrackGetFingerprintMetadata

type TrackGetFingerprintMetadata struct {
	XMLName xml.Name `xml:"tracks"`
	Tracks  []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		Duration   string `xml:"duration"`
		Mbid       string `xmll:"mbid"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:"streamable"`
		} `xml:"streamable"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

track.getFingerprintMetadata

type TrackGetInfo

type TrackGetInfo struct {
	XMLName    xml.Name `xml:"track"`
	Id         string   `xml:"id"`
	Name       string   `xml:"name"`
	Mbid       string   `xml:"mbid"`
	Url        string   `xml:"url"`
	Duration   string   `xml:"duration"`
	Streamable struct {
		FullTrack  string `xml:"fulltrack,attr"`
		Streamable string `xml:",chardata"`
	} `xml:"streamable"`
	PlayCount     string `xml:"playcount"`
	UserPlayCount string `xml:"userplaycount"`
	UserLoved     string `xml:"userloved"`
	Artist        struct {
		Name string `xml:"name"`
		Mbid string `xml:"mbid"`
		Url  string `xml:"url"`
	} `xml:"artist"`
	Album struct {
		Position string `xml:"position,attr"`
		Artist   string `xml:"artist"`
		Title    string `xml:"title"`
		Mbid     string `xml:"mbid"`
		Url      string `xml:"url"`
		Images   []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"album"`
	TopTags []struct {
		Name string `xml:"name"`
		Url  string `xml:"url"`
	} `xml:"toptags>tag"`
	Wiki struct {
		Published string `xml:"published"`
		Summary   string `xml:"summary"`
		Content   string `xml:"content"`
	} `xml:"wiki"`
}

track.getInfo

type TrackGetShouts

type TrackGetShouts struct {
	XMLName    xml.Name `xml:"shouts"`
	Artist     string   `xml:"artist,attr"`
	Track      string   `xml:"album,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Shouts     []struct {
		Body   string `xml:"body"`
		Author string `xml:"author"`
		Date   string `xml:"date"`
	} `xml:"shout"`
}

track.getShouts

type TrackGetSimilar

type TrackGetSimilar struct {
	XMLName xml.Name `xml:"similartracks"`
	Track   string   `xml:"track,attr"`
	Artist  string   `xml:"artist,attr"`
	Tracks  []struct {
		Name       string `xml:"name"`
		PlayCount  string `xml:"playcount"`
		Mbid       string `xml:"mbid"`
		Match      string `xml:"match"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:",chardata"`
		} `xml:"streamable"`
		Duration string `xml:"duration"`
		Artist   struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

track.getSimilar

type TrackGetTags

type TrackGetTags struct {
	XMLName xml.Name `xml:"tags"`
	Artist  string   `xml:"artist,attr"`
	Track   string   `xml:"track,attr"`
	Tags    []struct {
		Name string `xml:"name"`
		Url  string `xml:"url"`
	} `xml:"tag"`
}

track.getTags

type TrackGetTopFans

type TrackGetTopFans struct {
	XMLName xml.Name `xml:"topfans"`
	Artist  string   `xml:"artist,attr"`
	Track   string   `xml:"track,attr"`
	Users   []struct {
		Name     string `xml:"name"`
		RealName string `xml:"realname"`
		Url      string `xml:"url"`
		Images   []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Weight string `xml:"weight"`
	} `xml:"user"`
}

track.getTopFans

type TrackGetTopTags

type TrackGetTopTags struct {
	XMLName xml.Name `xml:"toptags"`
	Artist  string   `xml:"artist,attr"`
	Track   string   `xml:"track,attr"`
	Tags    []struct {
		Name  string `xml:"name"`
		Count string `xml:"count"`
		Url   string `xml:"url"`
	} `xml:"tag"`
}

track.getTopTags

type TrackScrobble

type TrackScrobble struct {
	XMLName   xml.Name `xml:"scrobbles"`
	Accepted  string   `xml:"accepted,attr"`
	Ignored   string   `xml:"ignored,attr"`
	Scrobbles []struct {
		Track struct {
			Corrected string `xml:"corrected,attr"`
			Name      string `xml:",chardata"`
		} `xml:"track"`
		Artist struct {
			Corrected string `xml:"corrected,attr"`
			Name      string `xml:",chardata"`
		} `xml:"artist"`
		Album struct {
			Corrected string `xml:"corrected,attr"`
			Name      string `xml:",chardata"`
		} `xml:"album"`
		AlbumArtist struct {
			Corrected string `xml:"corrected,attr"`
			Name      string `xml:",chardata"`
		} `xml:"albumArtist"`
		TimeStamp      string `xml:"timestamp"`
		IgnoredMessage struct {
			Corrected string `xml:"corrected,attr"`
			Body      string `xml:",chardata"`
		} `xml:"ignoredMessage"`
	} `xml:"scrobble"`
}

track.scrobble

type TrackSearch

type TrackSearch struct {
	XMLName    xml.Name `xml:"results"`
	OpenSearch string   `xml:"opensearch,attr"`
	For        string   `xml:"for,attr"`
	Query      struct {
		Role        string `xml:"role,attr"`
		SearchTerms string `xml:"searchTrems,attr"`
		StartPage   int    `xml:"startPage,attr"`
	} `xml:"Query"`
	TotalResults int `xml:"totalResults"`
	StartIndex   int `xml:"startIndex"`
	ItemsPerPage int `xml:"itemsPerPage"`
	Tracks       []struct {
		Name       string `xml:"name"`
		Mbid       string `xml:"mbid"`
		Artist     string `xml:"artist"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:"streamable"`
		} `xml:"streamable"`
		Listeners string `xml:"listeners"`
		Images    []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"trackmatches>track"`
}

track.search

type TrackUpdateNowPlaying

type TrackUpdateNowPlaying struct {
	XMLName xml.Name `xml:"nowplaying"`
	Track   struct {
		Corrected string `xml:"corrected,attr"`
		Name      string `xml:",chardata"`
	} `xml:"track"`
	Artist struct {
		Corrected string `xml:"corrected,attr"`
		Name      string `xml:",chardata"`
	} `xml:"artist"`
	Album struct {
		Corrected string `xml:"corrected,attr"`
		Name      string `xml:",chardata"`
	} `xml:"album"`
	AlbumArtist struct {
		Corrected string `xml:"corrected,attr"`
		Name      string `xml:",chardata"`
	} `xml:"albumArtist"`
	IgnoredMessage struct {
		Corrected string `xml:"corrected,attr"`
		Body      string `xml:",chardata"`
	} `xml:"ignoredMessage"`
}

track.updateNowPlaying

type UserGetArtistTracks

type UserGetArtistTracks struct {
	User       string `xml:"user,attr"`
	Artist     string `xml:"artist,attr"`
	Items      string `xml:"items,attr"`
	Total      int    `xml:"total,attr"`
	Page       int    `xml:"page,attr"`
	PerPage    int    `xml:"perPage,attr"`
	TotalPages int    `xml:"totalPages,attr"`
	Tracks     []struct {
		Artist struct {
			Mbid string `xml:"mbid,attr"`
			Name string `xml:",chardata"`
		} `xml:"artist"`
		Name       string `xml:"name"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:",chardata"`
		} `xml:"streamable"`
		Mbid  string `xml:"mbid"`
		Album struct {
			Mbid string `xml:"mbid,attr"`
			Name string `xml:",chardata"`
		} `xml:"album"`
		Url    string `xml:"url"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Date struct {
			Uts string `xml:"uts,attr"`
			Str string `xml:",chardata"`
		} `xml:"date"`
	} `xml:"track"`
}

user.getArtistTracks

type UserGetBannedTracks

type UserGetBannedTracks struct {
	XMLName    xml.Name `xml:"bannedtracks"`
	User       string   `xml:"user,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Name string `xml:"name"`
		Mbid string `xml:"mbid"`
		Url  string `xml:"url"`
		Date struct {
			UTS string `xml:"uts,attr"`
			Str string `xml:",chardata"`
		} `xml:"date"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		}
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:",chardata"`
		} `xml:"streamable"`
	} `xml:"track"`
}

user.getBanndedTracks

type UserGetEvents

type UserGetEvents struct {
	XMLName xml.Name `xml:"events"`
	User    string   `xml:"user,attr"`
	Geo     string   `xml:"geo,attr"`
	Events  []struct {
		Status  string `xml:"status,attr"`
		Id      string `xml:"id"`
		Title   string `xml:"title"`
		Artists struct {
			Headliner string   `xml:"headliner"`
			Artists   []string `xml:"artist"`
		} `xml:"artists"`
		Venue struct {
			Id       string `xml:"id"`
			Name     string `xml:"name"`
			Location struct {
				City       string `xml:"city"`
				Country    string `xml:"country"`
				Street     string `xml:"street"`
				Postalcode string `xml:"postalcode"`
				Point      struct {
					Lat  string `xml:"lat"`
					Long string `xml:"long"`
				} `xml:"point"`
			} `xml:"location"`
			Url         string `xml:"url"`
			Website     string `xml:"website"`
			PhoneNumber string `xml:"phonenumber"`
			Images      []struct {
				Size string `xml:"size,attr"`
				Url  string `xml:",chardata"`
			} `xml:"image"`
		} `xml:"venue"`
		StartDate   string `xml:"startDate"`
		Description string `xml:"description"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Attendance string `xml:"attendance"`
		Reviews    string `xml:"reviews"`
		Tag        string `xml:"tag"`
		Url        string `xml:"url"`
		Website    string `xml:"website"`
		Tickets    []struct {
			Supplier string `xml:"supplier,attr"`
			Url      string `xml",chardata"`
		} `xml:"tickets>ticket"`
		Tags []string `xml:"tags>tag"`
	} `xml:"event"`
}

user.getEvents

type UserGetFriends

type UserGetFriends struct {
	XMLName    xml.Name `xml:"friends"`
	For        string   `xml:"for,attr"` //username
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Friends    []struct {
		Id         string `xml:"id"`
		Name       string `xml:"name"`
		RealName   string `xml:"realname"`
		Url        string `xml:"url"`
		Country    string `xml:"country"`
		Age        string `xml:"age"`
		Gender     string `xml:"gender"`
		Subscriber string `xml:"subscriber"`
		Type       string `xml:"type"`
		PlayCount  string `xml:"playcount"`
		Playlists  string `xml:"playlists"`
		Bootstrap  string `xml:"bootstrap"` // ?
		Registered struct {
			Unixtime string `xml:"unixtime,attr"`
			Time     string `xml:",chardata"`
		} `xml:"registered"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		ScrobbleSource struct {
			Name  string `xml:"name"`
			Image string `xml:"image"`
			Url   string `xml:"url"`
		} `xml:"scrobblesource"`
		RecentTrack struct {
			Date   string `xml:"date,attr"`
			Uts    string `xml:"uts,attr"`
			Artist struct {
				Name string `xml:"name"`
				Mbid string `xml:"mbid"`
				Url  string `xml:"url"`
			} `xml:"artist"`
			Album struct {
				Name string `xml:"name"`
				Mbid string `xml:"mbid"`
				Url  string `xml:"url"`
			} `xml:"album"`
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"recenttrack"`
	} `xml:"user"`
}

user.getFriends

type UserGetInfo

type UserGetInfo struct {
	XMLName    xml.Name `xml:"user"`
	Id         string   `xml:"id"`
	Name       string   `xml:"name"`
	RealName   string   `xml:"realname"`
	Url        string   `xml:"url"`
	Country    string   `xml:"country"`
	Age        string   `xml:"age"`
	Gender     string   `xml:"gender"`
	Subscriber string   `xml:"subscriber"`
	PlayCount  string   `xml:"playcount"`
	Playlists  string   `xml:"playlists"`
	Bootstrap  string   `xml:"bootstrap"`
	Registered struct {
		Unixtime string `xml:"unixtime,attr"`
		Time     string `xml:",chardata"`
	} `xml:"registered"`
	Type   string `xml:"type"` //user type: stuff, moderator, user...
	Images []struct {
		Size string `xml:"size,attr"`
		Url  string `xml:",chardata"`
	} `xml:"image"`
}

user.getInfo

type UserGetLovedTracks

type UserGetLovedTracks struct {
	XMLName    xml.Name `xml:"lovedtracks"`
	User       string   `xml:"user,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Name string `xml:"name"`
		Mbid string `xml:"mbid"`
		Url  string `xml:"url"`
		Date struct {
			Uts  string `xml:"uts,attr"`
			Date string `xml:",chardata"`
		} `xml:"date"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:",chardata"`
		} `xml:"streamable"`
	} `xml:"track"`
}

user.getLovedTracks

type UserGetNeighbours

type UserGetNeighbours struct {
	XMLName xml.Name `xml:"neighbours"`
	User    string   `xml:"user,attr"`
	Users   []struct {
		Name     string `xml:"name"`
		RealName string `xml:"realname"`
		Images   []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Match string `xml:"match"`
	} `xml:"user"`
}

user.getNeighbours

type UserGetNewReleases

type UserGetNewReleases struct {
	XMLName xml.Name `xml:"albums"`
	Source  string   `xml:"source"`
	User    string   `xml:"user,attr"`
	Albums  []struct {
		ReleaseDate string `xml:"releasedate,attr"`
		Name        string `xml:"name"`
		Mbid        string `xml:"mbid"`
		Url         string `xml:"url"`
		Artist      struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"album"`
}

user.getNewReleases

type UserGetPastEvents

type UserGetPastEvents struct {
	XMLName    xml.Name `xml:"events"`
	User       string   `xml:"user,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Events     []struct {
		Status  string `xml:"status,attr"`
		Id      string `xml:"id"`
		Title   string `xml:"title"`
		Artists struct {
			Headliner string   `xml:"headliner"`
			Artists   []string `xml:"artist"`
		} `xml:"artists"`
		Venue struct {
			Id       string `xml:"id"`
			Name     string `xml:"name"`
			Location struct {
				City       string `xml:"city"`
				Country    string `xml:"country"`
				Street     string `xml:"street"`
				Postalcode string `xml:"postalcode"`
				Point      struct {
					Lat  string `xml:"lat"`
					Long string `xml:"long"`
				} `xml:"point"`
			} `xml:"location"`
			Url         string `xml:"url"`
			Website     string `xml:"website"`
			PhoneNumber string `xml:"phonenumber"`
			Images      []struct {
				Size string `xml:"size,attr"`
				Url  string `xml:",chardata"`
			} `xml:"image"`
		} `xml:"venue"`
		StartDate   string `xml:"startDate"`
		Description string `xml:"description"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Attendance string `xml:"attendance"`
		Reviews    string `xml:"reviews"`
		Canceled   string `xml:"canceled"`
		Tag        string `xml:"tag"`
		Url        string `xml:"url"`
		Website    string `xml:"website"`
	}
}

user.getPastEvents

type UserGetPersonalTags

type UserGetPersonalTags struct {
	XMLName    xml.Name `xml:"taggings"`
	User       string   `xml:"user,attr"`
	Tag        string   `xml:"tag,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Artists    []struct {
		Name       string `xml:"name"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artists>artist"`
	Tracks []struct {
		Name       string `xml:"name"`
		Duration   string `xml:"duration"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:"streamable"`
		} `xml:"streamable"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"tracks>track"`
}

user.getPersonalTags

type UserGetPlaylists

type UserGetPlaylists struct {
	XMLName   xml.Name `xml:"playlists"`
	User      string   `xml:"user,attr"`
	Playlists []struct {
		Id          string `xml:"id"`
		Title       string `xml:"title"`
		Description string `xml:"description"`
		Date        string `xml:"date"`
		Size        string `xml:"size"`
		Duration    string `xml:"duration"`
		Streamable  string `xml:"streamable"`
		Creator     string `xml:"creator"`
		Url         string `xml:"url"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"playlists>playlist"`
}

user.getPlaylists

type UserGetRecentStations

type UserGetRecentStations struct {
	XMLName    xml.Name `xml:"recentstations"`
	User       string   `xml:"user,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Stations   []struct {
		Type      string `xml:"type"`
		Name      string `xml:"name"`
		Url       string `xml:"url"`
		Resources []struct {
			Type   string `xml:"type"`
			Name   string `xml:"name"`
			Url    string `xml:"url"`
			Images []struct {
				Size string `xml:"size,attr"`
				Url  string `xml:",chardata"`
			} `xml:"image"`
		} `xml:"resources>resource"`
	} `xml:"station"`
}

user.getRecentStations

type UserGetRecentTracks

type UserGetRecentTracks struct {
	XMLName    xml.Name `xml:"recenttracks"`
	User       string   `xml:"user,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		NowPlaying string `xml:"nowplaying,attr,omitempty"`
		Artist     struct {
			Name string `xml:",chardata"`
			Mbid string `xml:"mbid,attr"`
		} `xml:"artist"`
		Name       string `xml:"name"`
		Streamable string `xml:"streamable"`
		Mbid       string `xml:"mbid"`
		Album      struct {
			Name string `xml:",chardata"`
			Mbid string `xml:"mbid,attr"`
		} `xml:"album"`
		Url    string `xml:"url"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Date struct {
			Uts  string `xml:"uts,attr"`
			Date string `xml:",chardata"`
		} `xml:"date"`
	} `xml:"track"`
}

user.getRecentTracks

type UserGetRecommendedArtists

type UserGetRecommendedArtists struct {
	XMLName    xml.Name `xml:"recommendations"`
	User       string   `xml:"user,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Artists    []struct {
		Name       string `xml:"name"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

user.getRecommendedArtists

type UserGetRecommendedEvents

type UserGetRecommendedEvents struct {
	XMLName    xml.Name `xml:"events"`
	User       string   `xml:"user,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Events     []struct {
		Id      string `xml:"id"`
		Title   string `xml:"title"`
		Artists struct {
			Headliner string   `xml:"headliner"`
			Artists   []string `xml:"artist"`
		} `xml:"artists"`
		Venue struct {
			Name     string `xml:"name"`
			Location struct {
				City       string `xml:"city"`
				Country    string `xml:"country"`
				Street     string `xml:"street"`
				Postalcode string `xml:"postalcode"`
				Point      struct {
					Lat  float64 `xml:"lat"`
					Long float64 `xml:"long"`
				} `xml:"point"`
			} `xml:"location"`
			Url         string `xml:"url"`
			Website     string `xml:"website"`
			PhoneNumber string `xml:"phonenumber"`
			Images      []struct {
				Size string `xml:"size,attr"`
				Url  string `xml:",chardata"`
			} `xml:"image"`
		} `xml:"venue"`
		StartDate   string `xml:"startDate"`
		Description string `xml:"description"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Attendance string `xml:"attendance"`
		Reviews    string `xml:"reviews"`
		Tag        string `xml:"tag"`
		Url        string `xml:"url"`
		Website    string `xml:"website"`
		Tickets    []struct {
			Supplier string `xml:"supplier,attr"`
			Url      string `xml",chardata"`
		} `xml:"tickets>ticket"`
		Tags []string `xml:"tags>tag"`
	} `xml:"event"`
}

user.getRecommendedEvents

type UserGetShouts

type UserGetShouts struct {
	XMLName    xml.Name `xml:"shouts"`
	User       string   `xml:"user,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Shouts     []struct {
		Body   string `xml:"body"`
		Author string `xml:"author"`
		Date   string `xml:"date"`
	} `xml:"shout"`
}

user.getShouts

type UserGetTopAlbums

type UserGetTopAlbums struct {
	XMLName    xml.Name `xml:"topalbums"`
	User       string   `xml:"user,attr"`
	Type       string   `xml:"type,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Albums     []struct {
		Rank      string `xml:"rank,attr"`
		Name      string `xml:"name"`
		PlayCount string `xml:"playcount"`
		Mbid      string `xml:"mbid"`
		Url       string `xml:"url"`
		Artist    struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"album"`
}

user.getTopAlbums

type UserGetTopArtists

type UserGetTopArtists struct {
	XMLName    xml.Name `xml:"topartists"`
	User       string   `xml:"user,attr"`
	Type       string   `xml:"type,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Artists    []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		PlayCount  string `xml:"playcount"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable string `xml:"streamable"`
		Images     []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"artist"`
}

user.getTopArtists

type UserGetTopTags

type UserGetTopTags struct {
	XMLName xml.Name `xml:"toptags"`
	User    string   `xml:"user,attr"`
	Tags    []struct {
		Name  string `xml:"name"`
		Count string `xml:"count"`
		Url   string `xml:"url"`
	} `xml:"tag"`
}

user.getTopTags

type UserGetTopTracks

type UserGetTopTracks struct {
	XMLName    xml.Name `xml:"toptracks"`
	User       string   `xml:"user,attr"`
	Type       string   `xml:"type,attr"`
	Total      int      `xml:"total,attr"`
	Page       int      `xml:"page,attr"`
	PerPage    int      `xml:"perPage,attr"`
	TotalPages int      `xml:"totalPages,attr"`
	Tracks     []struct {
		Rank       string `xml:"rank,attr"`
		Name       string `xml:"name"`
		Duration   string `xml:"duration"`
		PlayCount  string `xml:"playcount"`
		Mbid       string `xml:"mbid"`
		Url        string `xml:"url"`
		Streamable struct {
			FullTrack  string `xml:"fulltrack,attr"`
			Streamable string `xml:",chardata"`
		} `xml:"streamable"`
		Artist struct {
			Name string `xml:"name"`
			Mbid string `xml:"mbid"`
			Url  string `xml:"url"`
		} `xml:"artist"`
		Images []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"track"`
}

user.getTopTracks

type UserGetWeeklyAlbumChart

type UserGetWeeklyAlbumChart struct {
	XMLName xml.Name `xml:"weeklyalbumchart"`
	User    string   `xml:"user,attr"`
	From    string   `xml:"from,attr"`
	To      string   `xml:"to,attr"`
	Albums  []struct {
		Rank      string `xml:"rank,attr"`
		Name      string `xml:"name"`
		Mbid      string `xml:"mbid"`
		PlayCount string `xml:"playcount"`
		Url       string `xml:"url"`
	} `xml:"album"`
}

user.getWeeklyAlbumChart

type UserGetWeeklyArtistChart

type UserGetWeeklyArtistChart struct {
	XMLName xml.Name `xml:"weeklyartistchart"`
	User    string   `xml:"user,attr"`
	From    string   `xml:"from,attr"`
	To      string   `xml:"to,attr"`
	Artists []struct {
		Rank      string `xml:"rank,attr"`
		Name      string `xml:"name"`
		Mbid      string `xml:"mbid"`
		PlayCount string `xml:"playcount"`
		Url       string `xml:"url"`
	} `xml:"artist"`
}

user.getWeeklyArtistChart

type UserGetWeeklyChartList

type UserGetWeeklyChartList struct {
	XMLName xml.Name `xml:"weeklychartlist"`
	User    string   `xml:"user,attr"`
	Charts  []struct {
		From string `xml:"from,attr"`
		To   string `xml:"to,attr"`
	} `xml:"chart"`
}

user.getWeeklyChartList

type UserGetWeeklyTrackChart

type UserGetWeeklyTrackChart struct {
	XMLName xml.Name `xml:"weeklytrackchart"`
	User    string   `xml:"user,attr"`
	From    string   `xml:"from,attr"`
	To      string   `xml:"to,attr"`
	Tracks  []struct {
		Rank   string `xml:"rank,attr"`
		Artist struct {
			Name string `xml:",chardata"`
			Mbid string `xml:"mbid,attr"`
		} `xml:"artist"`
		Name      string `xml:"name"`
		Mbid      string `xml:"mbid"`
		PlayCount string `xml:"playcount"`
		Images    []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Url string `xml:"url"`
	} `xml:"track"`
}

user.getWeeklyTrackChart

type VenueGetEvents

type VenueGetEvents struct {
	XMLName       xml.Name `xml:"events"`
	Geo           string   `xml:"geo,attr"`
	Venue         string   `xml:"venue,attr"`
	FestivalsOnly string   `xml:"festivalsonly"`
	Events        []struct {
		Geo     string `xml:"geo,attr"`
		Id      string `xml:"id"`
		Title   string `xml:"title"`
		Artists struct {
			Headliner string   `xml:"headliner"`
			Artists   []string `xml:"artist"`
		} `xml:"artists"`
		Venue struct {
			Id       string `xml:"id"`
			Name     string `xml:"name"`
			Location struct {
				City       string `xml:"city"`
				Country    string `xml:"country"`
				Street     string `xml:"street"`
				Postalcode string `xml:"postalcode"`
				Point      struct {
					Lat  string `xml:"lat"`
					Long string `xml:"long"`
				} `xml:"point"`
			} `xml:"location"`
			Url         string `xml:"url"`
			Website     string `xml:"website"`
			PhoneNumber string `xml:"phonenumber"`
			Images      []struct {
				Size string `xml:"size,attr"`
				Url  string `xml:",chardata"`
			} `xml:"image"`
		} `xml:"venue"`
		StartDate   string `xml:"startDate"`
		Description string `xml:"description"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Attendance string `xml:"attendance"`
		Reviews    string `xml:"reviews"`
		Tag        string `xml:"tag"`
		Url        string `xml:"url"`
		Website    string `xml:"website"`
		Tickets    []struct {
			Supplier string `xml:"supplier,attr"`
			Url      string `xml",chardata"`
		} `xml:"tickets>ticket"`
		Canceled string   `xml:"canceled"`
		Tags     []string `xml:"tags>tag"`
	} `xml:"event"`
}

venue.getEvents

type VenueGetPastEvents

type VenueGetPastEvents struct {
	XMLName       xml.Name `xml:"events"`
	Geo           string   `xml:"geo,attr"`
	Venue         string   `xml:"venue,attr"`
	Url           string   `xml:"url,attr"`
	VenueTimezone string   `xml:"venuetimezone,attr"`
	FestivalsOnly string   `xml:"festivalsonly,attr"`
	Total         int      `xml:"total,attr"`
	Page          int      `xml:"page,attr"`
	PerPage       int      `xml:"perPage,attr"`
	TotalPages    int      `xml:"totalPages,attr"`
	Events        []struct {
		Geo     string `xml:"geo,attr"`
		Id      string `xml:"id"`
		Title   string `xml:"title"`
		Artists struct {
			Headliner string   `xml:"headliner"`
			Artists   []string `xml:"artist"`
		} `xml:"artists"`
		Venue struct {
			Id       string `xml:"id"`
			Name     string `xml:"name"`
			Location struct {
				City       string `xml:"city"`
				Country    string `xml:"country"`
				Street     string `xml:"street"`
				Postalcode string `xml:"postalcode"`
				Point      struct {
					Lat  string `xml:"lat"`
					Long string `xml:"long"`
				} `xml:"point"`
			} `xml:"location"`
			Url         string `xml:"url"`
			Website     string `xml:"website"`
			PhoneNumber string `xml:"phonenumber"`
			Images      []struct {
				Size string `xml:"size,attr"`
				Url  string `xml:",chardata"`
			} `xml:"image"`
		} `xml:"venue"`
		StartDate   string `xml:"startDate"`
		Description string `xml:"description"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
		Attendance string   `xml:"attendance"`
		Reviews    string   `xml:"reviews"`
		Tag        string   `xml:"tag"`
		Url        string   `xml:"url"`
		Website    string   `xml:"website"`
		Canceled   string   `xml:"canceled"`
		Tags       []string `xml:"tags>tag"`
	} `xml:"event"`
}

venue.getPastEvents

type VenueSearch

type VenueSearch struct {
	XMLName    xml.Name `xml:"results"`
	For        string   `xml:"for,attr"`
	OpenSearch string   `xml:"opensearch,attr"`
	Geo        string   `xml:"geo,attr"`
	Query      struct {
		Role        string `xml:"role,attr"`
		SearchTerms string `xml:"searchTrems,attr"`
		StartPage   int    `xml:"startPage,attr"`
	} `xml:"Query"`
	TotalResults int `xml:"totalResults"`
	StartIndex   int `xml:"startIndex"`
	ItemsPerPage int `xml:"itemsPerPage"`
	Venues       []struct {
		Id       string `xml:"id"`
		Name     string `xml:"name"`
		Location struct {
			City       string `xml:"city"`
			Country    string `xml:"country"`
			Street     string `xml:"street"`
			Postalcode string `xml:"postalcode"`
			Point      struct {
				Lat  string `xml:"lat"`
				Long string `xml:"long"`
			} `xml:"point"`
		} `xml:"location"`
		Url         string `xml:"url"`
		Website     string `xml:"website"`
		Phonenumber string `xml:"phonenumber"`
		Images      []struct {
			Size string `xml:"size,attr"`
			Url  string `xml:",chardata"`
		} `xml:"image"`
	} `xml:"venuematches>venue"`
}

venue.search

Jump to

Keyboard shortcuts

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