Skip to content

willhamilton24/Audigo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Audigo

A Go Wrapper for Music APIs - Last.fm, Spotify, Apple Music, Soundcloud, Tidal, Discogs

Under construction, check back later!

Docs

Spotify

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

Albums

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

Artists

SpotifyClient.GetArtistAlbums(id string) (albums ArtistAlbums, e error)

  • id: Spotify Artist Id

Search

SpotifyClient.Search(term string, catagory string) (results SpotifySearchResults, e error)

  • term: The Search Term
  • catagory: "artist" or "album"

About

A Go Wrapper for Music APIs - Last.fm, Spotify

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages