Documentation
¶
Index ¶
- Variables
- func AddTracksToPlaylist(playlistId spotify.ID, t ...spotify.ID) error
- func GetArtistAlbums(artistID spotify.ID) ([]spotify.SimpleAlbum, error)
- func GetArtistTopTracks(artistID spotify.ID) ([]spotify.FullTrack, error)
- func GetFullPlaylist(id spotify.ID) (*spotify.FullPlaylist, error)
- func GetPlayerState() (*spotify.PlayerState, error)
- func GetTopArtists() ([]spotify.FullArtist, error)
- func GetTopTracks() ([]spotify.FullTrack, error)
- func InitClient() error
- func Next() error
- func PlayContext(context spotify.URI) error
- func PlaySong(uri spotify.URI) error
- func PlaySongWithContext(context spotify.URI, position int) error
- func PlaySongWithContextURI(context, uri spotify.URI) error
- func Previous() error
- func QueueAlbum(id spotify.ID) error
- func QueuePlaylist(id spotify.ID) error
- func QueueTracks(ids ...spotify.ID) error
- func RecentlyPlayed() ([]spotify.RecentlyPlayedItem, error)
- func Repeat() error
- func Search(s string) (*spotify.SearchResult, error)
- func Shuffle() error
- func TogglePlayback() error
- func TransferPlayback(deviceId spotify.ID) error
- func UriToID(uri spotify.URI) (spotify.ID, error)
- func UserDevices() ([]spotify.PlayerDevice, error)
- type Album
- type FollowedArtists
- type LikedSongs
- type Playable
- type Playlist
- type SavedAlbums
- type UserPlaylists
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PageContinue = errors.New("CONTINUE")
)
Functions ¶
func AddTracksToPlaylist ¶
func AddTracksToPlaylist(playlistId spotify.ID, t ...spotify.ID) error
func GetArtistAlbums ¶
func GetArtistAlbums(artistID spotify.ID) ([]spotify.SimpleAlbum, error)
func GetArtistTopTracks ¶
func GetArtistTopTracks(artistID spotify.ID) ([]spotify.FullTrack, error)
func GetFullPlaylist ¶
func GetFullPlaylist(id spotify.ID) (*spotify.FullPlaylist, error)
func GetPlayerState ¶
func GetPlayerState() (*spotify.PlayerState, error)
func GetTopArtists ¶
func GetTopArtists() ([]spotify.FullArtist, error)
func GetTopTracks ¶
func GetTopTracks() ([]spotify.FullTrack, error)
func InitClient ¶
func InitClient() error
func PlayContext ¶
func PlayContext(context spotify.URI) error
func PlaySongWithContext ¶
func PlaySongWithContextURI ¶
func PlaySongWithContextURI(context, uri spotify.URI) error
func QueueAlbum ¶
func QueueAlbum(id spotify.ID) error
func QueuePlaylist ¶
func QueuePlaylist(id spotify.ID) error
func QueueTracks ¶
func QueueTracks(ids ...spotify.ID) error
func RecentlyPlayed ¶
func RecentlyPlayed() ([]spotify.RecentlyPlayedItem, error)
func TogglePlayback ¶
func TogglePlayback() error
func TransferPlayback ¶
func TransferPlayback(deviceId spotify.ID) error
func UserDevices ¶
func UserDevices() ([]spotify.PlayerDevice, error)
Types ¶
type FollowedArtists ¶
type FollowedArtists []spotify.FullArtist
func CurrentUserFollowedArtists ¶
func CurrentUserFollowedArtists() (*FollowedArtists, chan error)
type LikedSongs ¶
type LikedSongs []spotify.SavedTrack
func CurrentUserSavedTracks ¶
func CurrentUserSavedTracks() (*LikedSongs, chan error)
type Playlist ¶
type Playlist struct { SnapshotID string ID spotify.ID Tracks *[]spotify.PlaylistTrack }
func GetPlaylist ¶
type SavedAlbums ¶
type SavedAlbums []spotify.SavedAlbum
func CurrentUserSavedAlbums ¶
func CurrentUserSavedAlbums() (*SavedAlbums, chan error)
type UserPlaylists ¶
type UserPlaylists []spotify.SimplePlaylist
func CurrentUserPlaylists ¶
func CurrentUserPlaylists() (*UserPlaylists, chan error)
Click to show internal directories.
Click to hide internal directories.