Documentation ¶
Index ¶
- type Auth
- type NewPlaylist
- type Playlist
- type PlaylistTrack
- type PlaylistTracks
- type Playlists
- type Profile
- type SearchResult
- type SearchTracks
- type Spotify
- func (spotify *Spotify) AddTrack(playlist *Playlist, track *Track) error
- func (spotify *Spotify) AddTracks(playlist *Playlist, tracks []Track) error
- func (spotify *Spotify) CurrentUser() (*Profile, error)
- func (spotify *Spotify) DeleteTrack(playlist *Playlist, track *Track) error
- func (spotify *Spotify) DeleteTracks(playlist *Playlist, tracks []Track) error
- func (spotify *Spotify) GetOrCreatePlaylist(name string) (*Playlist, error)
- func (spotify *Spotify) Playlist(name string) (*Playlist, error)
- func (spotify *Spotify) PlaylistById(playlistId string) (*Playlist, error)
- func (spotify *Spotify) Playlists() ([]Playlist, error)
- func (spotify *Spotify) RecentTracks(playlist *Playlist, n int) ([]PlaylistTrack, error)
- func (spotify *Spotify) Save(filepath string) error
- func (spotify *Spotify) Search(query string, types string, limit int) ([]Track, error)
- func (spotify *Spotify) SearchArtistTrack(artist string, track string) ([]Track, error)
- func (spotify *Spotify) SetCurrentUser() error
- type Token
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { ClientId string `json:"client_id"` ClientSecret string `json:"client_secret"` TokenFile string `json:"token_file"` // contains filtered or unexported fields }
func (*Auth) CallbackURL ¶
type NewPlaylist ¶
type Playlist ¶
type Playlist struct { Id string `json:"id"` Name string `json:"name"` Tracks PlaylistTracks `json:"tracks"` }
type PlaylistTrack ¶
type PlaylistTrack struct {
Track Track `json:"track"`
}
type PlaylistTracks ¶
type SearchResult ¶
type SearchResult struct {
Tracks SearchTracks `json:"tracks"`
}
type SearchTracks ¶
type SearchTracks struct {
Items []Track `json:"items"`
}
type Spotify ¶
func (*Spotify) CurrentUser ¶
func (*Spotify) DeleteTrack ¶
func (*Spotify) DeleteTracks ¶
func (*Spotify) GetOrCreatePlaylist ¶
func (*Spotify) PlaylistById ¶
func (*Spotify) RecentTracks ¶
func (spotify *Spotify) RecentTracks(playlist *Playlist, n int) ([]PlaylistTrack, error)
func (*Spotify) SearchArtistTrack ¶
func (*Spotify) SetCurrentUser ¶
Click to show internal directories.
Click to hide internal directories.