Documentation ¶
Index ¶
- func CompleteAuth(w http.ResponseWriter, r *http.Request)
- func FetchAlbums(id spotify.ID, opt string) []spotify.SimpleAlbum
- func FetchArtists() []spotify.SimpleArtist
- func FetchPlaylists() []spotify.SimplePlaylist
- func FetchTracks(id spotify.ID, limit int, opt string) []spotify.SimpleTrack
- func GetUser() *spotify.PrivateUser
- func GetUserID() string
- func GetUserName() string
- func HandleAuth(client_id string, client_secret string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompleteAuth ¶
func CompleteAuth(w http.ResponseWriter, r *http.Request)
Completes authentication by verifying credentials Source: https://github.com/zmb3/spotify/blob/master/examples/authenticate/authcode/authenticate.go
func FetchAlbums ¶
func FetchAlbums(id spotify.ID, opt string) []spotify.SimpleAlbum
Fetches entire list of albums; If `opt` = 1, return artist discography if `opt` = 2, return saved albums
func FetchArtists ¶
func FetchArtists() []spotify.SimpleArtist
Fetches user's Top 10 Artists (all followed artists too slow)
func FetchPlaylists ¶
func FetchPlaylists() []spotify.SimplePlaylist
Fetches all playlists in user library
func FetchTracks ¶
Returns up to LIMIT tracks from a playlist or album
func GetUserName ¶
func GetUserName() string
func HandleAuth ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.