-
Notifications
You must be signed in to change notification settings - Fork 1
/
chart.go
35 lines (28 loc) · 797 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
33
34
35
package deezer
type ChartService service
func (s *ChartService) Get() {
}
func (s *ChartService) GetTracks() (*Tracks, error) {
var err error
tracks := new(Tracks)
s.client.base.Get("chart/0/tracks").Receive(tracks, err)
return tracks, err
}
func (s *ChartService) GetAlbums() (*Albums, error) {
var err error
albums := new(Albums)
s.client.base.Get("chart/0/albums").Receive(albums, err)
return albums, err
}
func (s *ChartService) GetArtists() (*Artists, error) {
var err error
artists := new(Artists)
s.client.base.Get("chart/0/artists").Receive(artists, err)
return artists, err
}
func (s *ChartService) GetPlaylists() (*Playlists, error) {
var err error
playlists := new(Playlists)
s.client.base.Get("chart/0/playlists").Receive(playlists, err)
return playlists, err
}