Documentation ¶
Index ¶
- type SpotifyProvider
- func (s SpotifyProvider) AddToPlaylist(playlistId string, trackId string) error
- func (s SpotifyProvider) CreatePlaylist(name string) (provider.PlaylistID, error)
- func (s SpotifyProvider) FindPlaylistByName(name string) (provider.PlaylistID, error)
- func (s SpotifyProvider) FindTrack(name string) (provider.TrackID, error)
- func (s SpotifyProvider) GetFullPlaylist(id string) (*provider.FullPlaylist, error)
- func (s SpotifyProvider) GetPlaylists() ([]provider.Playlist, error)
- func (s SpotifyProvider) IsLoggedIn() bool
- func (s SpotifyProvider) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpotifyProvider ¶
type SpotifyProvider struct {
// contains filtered or unexported fields
}
func New ¶
func New(tokenProvider provider.TokenProvider) *SpotifyProvider
func (SpotifyProvider) AddToPlaylist ¶
func (s SpotifyProvider) AddToPlaylist(playlistId string, trackId string) error
func (SpotifyProvider) CreatePlaylist ¶
func (s SpotifyProvider) CreatePlaylist(name string) (provider.PlaylistID, error)
func (SpotifyProvider) FindPlaylistByName ¶
func (s SpotifyProvider) FindPlaylistByName(name string) (provider.PlaylistID, error)
func (SpotifyProvider) FindTrack ¶
func (s SpotifyProvider) FindTrack(name string) (provider.TrackID, error)
func (SpotifyProvider) GetFullPlaylist ¶
func (s SpotifyProvider) GetFullPlaylist(id string) (*provider.FullPlaylist, error)
func (SpotifyProvider) GetPlaylists ¶
func (s SpotifyProvider) GetPlaylists() ([]provider.Playlist, error)
func (SpotifyProvider) IsLoggedIn ¶
func (s SpotifyProvider) IsLoggedIn() bool
func (SpotifyProvider) Name ¶
func (s SpotifyProvider) Name() string
Click to show internal directories.
Click to hide internal directories.