client

package
v0.0.0-...-53aeb52 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTrack

func AddTrack(ctx context.Context, sc *spotify.Client, playlist *spotify.FullPlaylist, track *spotify.FullTrack) error

func CreatePrivatePlaylist

func CreatePrivatePlaylist(ctx context.Context, sc *spotify.Client, userID string, name string, description string) (*spotify.FullPlaylist, error)

func FindBestMatchingTrack

func FindBestMatchingTrack(ctx context.Context, sc *spotify.Client, query string) (*spotify.FullTrack, error)

func FindPlaylist

func FindPlaylist(ctx context.Context, sc *spotify.Client, userID string, playlistName string) (*spotify.FullPlaylist, error)

func GetTrack

func GetTrack(ctx context.Context, sc *spotify.Client, id string) (*spotify.FullTrack, error)

func GetTrackIdsOfPlaylist

func GetTrackIdsOfPlaylist(ctx context.Context, sc *spotify.Client, page spotify.PlaylistTrackPage) ([]spotify.ID, error)

func IsSpotifyID

func IsSpotifyID(value string) bool

func Login

func Login(ctx context.Context, cfg *config.Config) (*spotify.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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