A Go Wrapper for Music APIs - Last.fm, Spotify, Apple Music, Soundcloud, Tidal, Discogs
Under construction, check back later!
spotify.SpotifyClient{ClientId string, ApiSecret string, AccessToken string)
- ClientId: Spotify API Client Id
- ApiSecret: Spotify API Secret
- AccessToken: Spotify API Access Token if you have a valid one, otherwise pass empty string
SpotifyClient.Authenticate() error
- Uses SpotifyClient's ClientId and ApiSecret to generate a new API Access Token.
- IMPORTANT:This Must Be Run Before Any Other SpotifyClient method if you did not pass a valid AccessToken to the constructor
SpotifyClient.GetAlbum(id string) (album SpotifyAlbum, e error)
- id: Spotify Album Id
SpotifyClient.GetAlbumTracks(id string, options map[string]string) (tracks SpotifyTracks, e error)
- id: Spotify Album Id
- options: Query string options
SpotifyClient.GetAlbums(ids []string) (album SpotifyAlbums, e error)
- ids: Slice of Spotify Album Ids
SpotifyClient.GetArtistAlbums(id string) (albums ArtistAlbums, e error)
- id: Spotify Artist Id
SpotifyClient.Search(term string, catagory string) (results SpotifySearchResults, e error)
- term: The Search Term
- catagory: "artist" or "album"