api

package
v0.0.0-...-1822270 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func FetchTracks(id spotify.ID, limit int, opt string) []spotify.SimpleTrack

Returns up to LIMIT tracks from a playlist or album

func GetUser

func GetUser() *spotify.PrivateUser

Returns the User object of active client

func GetUserID

func GetUserID() string

Returns ID of User object of active client

func GetUserName

func GetUserName() string

func HandleAuth

func HandleAuth(client_id string, client_secret string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL