spotify

package
v0.0.0-...-93edf92 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: BSD-3-Clause Imports: 15 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromSession

func ClientFromSession(c *gin.Context, auth spotify.Authenticator) (*spotify.Client, error)

ClientFromSession gets a Spotify client from the session's user

func DefaultClient

func DefaultClient(def clientcredentials.Config, auth spotify.Authenticator) (*spotify.Client, error)

DefaultClient gets a Spotify client from the default token The default token is provided via Spotify's Client Credentials auth flow

func DefaultToken

func DefaultToken(auth clientcredentials.Config) (*oauth2.Token, error)

DefaultToken gets a Spotify access token via Spotify's client credentials OAuth flow

func Playlist

func Playlist(username string, playlistID string, client spotify.Client) (models.CachedPlaylist, error)

Playlist gets a Spotify user's playlist given its username and playlist ID

func Playlists

func Playlists(username string, client spotify.Client) ([]models.Playlist, error)

Playlists gets the current user's playlists

func SetCache

func SetCache(c cache.Store)

SetCache sets the Party cache store used by this Spotify client

Types

This section is empty.

Jump to

Keyboard shortcuts

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