forked from shkh/lastfm-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chart.go
32 lines (28 loc) · 991 Bytes
/
chart.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package lastfm_go
type chartApi struct {
params *apiParams
}
// chart.getTopArtists
func (api chartApi) GetTopArtists(args map[string]interface{}) (result ChartGetTopArtists, err error) {
defer func() { appendCaller(err, "lastfm.Chart.GetTopArtists") }()
err = callGet("chart.gettopartists", api.params, args, &result, P{
"plain": []string{"page", "limit"},
})
return
}
// chart.getTopTags
func (api chartApi) GetTopTags(args map[string]interface{}) (result ChartGetTopTags, err error) {
defer func() { appendCaller(err, "lastfm.Chart.GetTopTags") }()
err = callGet("chart.gettoptags", api.params, args, &result, P{
"plain": []string{"page", "limit"},
})
return
}
// chart.getTopTracks
func (api chartApi) GetTopTracks(args map[string]interface{}) (result ChartGetTopTracks, err error) {
defer func() { appendCaller(err, "lastfm.Chart.GetTopTracks") }()
err = callGet("chart.gettoptracks", api.params, args, &result, P{
"plain": []string{"page", "limit"},
})
return
}