Documentation ¶
Index ¶
- func AddTracksToSpotifyPlaylist(trackIds []string, playlistId string, accessToken string) string
- func CreateEmptySpotifyPlaylist(playlistName string, accessToken string) string
- func GeneratePlaylist(artistNames []string, playlistName string)
- func GetTopTrackIds(artistId string, accessToken string) []string
- func RefreshSpotifyAuth() (string, error)
- type SpotifyAddTrackToPlaylistResponse
- type SpotifyAlbum
- type SpotifyArtist
- type SpotifyArtistItem
- type SpotifyCreatePlaylistRequest
- type SpotifyCreatePlaylistResponse
- type SpotifyRefreshTokenResponse
- type SpotifySearchResponse
- type SpotifyTopTracksResponse
- type SpotifyTrack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePlaylist ¶
func GetTopTrackIds ¶
func RefreshSpotifyAuth ¶
Types ¶
type SpotifyAddTrackToPlaylistResponse ¶
type SpotifyAddTrackToPlaylistResponse struct {
SnapshotId string `json:"snapshot_id"`
}
type SpotifyAlbum ¶
type SpotifyArtist ¶
type SpotifyArtist struct {
Items []SpotifyArtistItem `json:"items"`
}
type SpotifyArtistItem ¶
type SpotifyArtistItem struct { Genres []string `json:"genres"` Id string `json:"id"` Name string `json:"name"` Popularity int `json:"popularity"` Type string `json:"type"` }
func SearchForArtist ¶
func SearchForArtist(artistName string, accessToken string) SpotifyArtistItem
type SpotifySearchResponse ¶
type SpotifySearchResponse struct {
Artists SpotifyArtist `json:"artists"`
}
type SpotifyTopTracksResponse ¶
type SpotifyTopTracksResponse struct {
Tracks []SpotifyTrack `json:"tracks"`
}
type SpotifyTrack ¶
type SpotifyTrack struct { Album SpotifyAlbum `json:"album"` Artists []SpotifyArtistItem `json:"artists"` Id string `json:"id"` Name string `json:"name"` Popularity int `json:"popularity"` TrackNumber int `json:"track_number"` }
Click to show internal directories.
Click to hide internal directories.