-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.go
78 lines (65 loc) · 3.59 KB
/
config.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package kkbox
const (
// OAuthTokenURL for auth token url
OAuthTokenURL = "https://account.kkbox.com/oauth2/token"
// ChartURL List of song rankings.
ChartURL = "https://api.kkbox.com/v1.1/charts"
// ChartPlayListURL retrieve information of the song ranking
// with {playlist_id}.
ChartPlayListURL = ChartURL + "/%s"
// ChartPlayListTrackURL list tracks of a chart playlist.
ChartPlayListTrackURL = ChartURL + "/%s/tracks"
// NewHitURL List of new hits playlists.
NewHitURL = "https://api.kkbox.com/v1.1/new-hits-playlists"
// NewHitPlayListURL retrieve information of the new hits playlist
// with {playlist_id}.
NewHitPlayListURL = NewHitURL + "/%s"
// NewHitPlayListTrackURL List of tracks of a new hits playlist.
NewHitPlayListTrackURL = NewHitURL + "/%s/tracks"
// SearchURL search for various objects.
SearchURL = "https://api.kkbox.com/v1.1/search"
// TrackURL retrieve information of the song with {track_id}.
TrackURL = "https://api.kkbox.com/v1.1/tracks/%s"
// AlbumURL retrieve information of the album with {album_id}.
AlbumURL = "https://api.kkbox.com/v1.1/albums/%s"
// AlbumTrackURL list of tracks of an album.
AlbumTrackURL = AlbumURL + "/tracks"
// ArtistURL retrieve information of the artist with {artist_id}.
ArtistURL = "https://api.kkbox.com/v1.1/artists/%s"
// ArtistAlbumURL List of albums of an artist.
ArtistAlbumURL = ArtistURL + "/albums"
// ArtistTopTrackURL List of top tracks of an artist.
ArtistTopTrackURL = ArtistURL + "/top-tracks"
// ArtistRelatedArtistURL Get related artists of an artist.
ArtistRelatedArtistURL = ArtistURL + "/related-artists"
// SharedPlaylistURL retrieve information of the shared playlist with {playlist_id}.
SharedPlaylistURL = "https://api.kkbox.com/v1.1/shared-playlists/%s"
// SharedPlaylistTrackURL list of songs of a shared playlist.
SharedPlaylistTrackURL = "https://api.kkbox.com/v1.1/shared-playlists/%s/tracks"
// FeaturedPlayListURL List of songs hand-picked and arranged by KKBOX editors.
FeaturedPlayListURL = "https://api.kkbox.com/v1.1/featured-playlists"
// FeaturedSinglePlayListURL retrieve information of the featured playlist with {playlist_id}.
FeaturedSinglePlayListURL = FeaturedPlayListURL + "/%s"
// FeaturedPlayListTrackURL List the songs of a featured playlist.
FeaturedPlayListTrackURL = FeaturedPlayListURL + "/%s/tracks"
// FeaturedCategoryURL List of featured playlist categories.
FeaturedCategoryURL = "https://api.kkbox.com/v1.1/featured-playlist-categories"
// FeaturedSingleCategoryURL Get A Featured Playlist Category.
FeaturedSingleCategoryURL = FeaturedCategoryURL + "/%s"
// FeaturedCategoryPlayListURL List of playlists of a featured playlist category.
FeaturedCategoryPlayListURL = FeaturedCategoryURL + "/%s/playlists"
// MoodStationURL List of mood stations.
MoodStationURL = "https://api.kkbox.com/v1.1/mood-stations"
// MoodSingleStationURL To retrieve information of the mood station with {station_id}.
MoodSingleStationURL = MoodStationURL + "/%s"
// GenreStationURL List of genre stations.
GenreStationURL = "https://api.kkbox.com/v1.1/mood-stations"
// GenreSingleStationURL retrieve information of the genre station with {station_id}.
GenreSingleStationURL = GenreStationURL + "/%s"
// ReleaseCategoryURL List of new release categories.
ReleaseCategoryURL = "https://api.kkbox.com/v1.1/new-release-categories"
// ReleaseSingleCategoryURL retrieve information of the new release category with {category_id}.
ReleaseSingleCategoryURL = ReleaseCategoryURL + "/%s"
// ReleaseCategoryAlbumURL List of albums of a new release category.
ReleaseCategoryAlbumURL = ReleaseCategoryURL + "/%s/albums"
)