Versions in this module Expand all Collapse all v0 v0.3.0 Oct 20, 2022 v0.2.4 Oct 20, 2022 v0.2.3 Oct 20, 2022 v0.2.2 Oct 20, 2022 v0.2.1 Oct 20, 2022 Changes in this version + const ScopeImageUpload + const ScopePlaylistModifyPrivate + const ScopePlaylistModifyPublic + const ScopePlaylistReadCollaborative + const ScopePlaylistReadPrivate + const ScopeStreaming + const ScopeUserFollowModify + const ScopeUserFollowRead + const ScopeUserLibraryModify + const ScopeUserLibraryRead + const ScopeUserModifyPlaybackState + const ScopeUserReadCurrentlyPlaying + const ScopeUserReadEmail + const ScopeUserReadPlaybackState + const ScopeUserReadPrivate + const ScopeUserReadRecentlyPlayed + const ScopeUserTopRead + type Album struct + AlbumType string + Artists []struct{ ... } + AvailableMarkets []string + Copyrights []struct{ ... } + ExternalIds struct{ ... } + ExternalUrls struct{ ... } + Genres []interface{} + Href string + ID string + Images []struct{ ... } + Label string + Name string + Popularity int + ReleaseDate string + ReleaseDatePrecision string + TotalTracks int + Tracks struct{ ... } + Type string + URI string + func (a *Album) GetArtistURIs() []string + func (a *Album) GetName() string + func (a *Album) GetTrackURIs() []string + func (a *Album) GetURI() string + type Artist struct + ExternalUrls struct{ ... } + Followers struct{ ... } + Genres []string + Href string + ID string + Images []struct{ ... } + Name string + Popularity int + Type string + URI string + func (a *Artist) GetName() string + func (a *Artist) GetNumFollowers() int + func (a *Artist) GetURI() string + type AudioAnalysis struct + Bars []struct{ ... } + Beats []struct{ ... } + Meta struct{ ... } + Sections []struct{ ... } + Segments []struct{ ... } + Tatums []struct{ ... } + Track struct{ ... } + type AudioFeatures struct + Acousticness float64 + AnalysisURL string + Danceability float64 + DurationMs int + Energy float64 + ID string + Instrumentalness float64 + Key int + Liveness float64 + Loudness float64 + Mode int + Speechiness float64 + Tempo float64 + TimeSignature int + TrackHref string + Type string + URI string + Valence float64 + type Device struct + Active bool + ID string + Name string + Restricted bool + Type string + Volume int + type Playlist struct + Collaborative bool + Description string + ExternalUrls struct{ ... } + Followers struct{ ... } + Href string + ID string + Images []struct{ ... } + Name string + Owner struct{ ... } + PrimaryColor interface{} + Public bool + SnapshotID string + Tracks struct{ ... } + Type string + URI string + func (p *Playlist) GetArtistURIs() []string + func (p *Playlist) GetName() string + func (p *Playlist) GetNumFollowers() int + func (p *Playlist) GetTrackURIs() []string + func (p *Playlist) GetTracks() []Track + func (p *Playlist) GetURI() string + type Profile struct + Country string + DisplayName string + Email string + ExplicitContent struct{ ... } + ExternalUrls struct{ ... } + Followers struct{ ... } + Href string + ID string + Images []struct{ ... } + Product string + Type string + URI string + func (p *Profile) GetDisplayName() string + func (p *Profile) GetID() string + type Query struct + func NewQuery(client string, secret string) (Query, error) + func (q Query) GetAlbumByName(input string) (Album, bool) + func (q Query) GetAlbumByURI(uri string) (Album, bool) + func (q Query) GetAlbumsByNames(names ...string) ([]Album, bool) + func (q Query) GetAlbumsByURIs(uris ...string) ([]Album, bool) + func (q Query) GetArtistByName(input string) (Artist, bool) + func (q Query) GetArtistByURI(uri string) (Artist, bool) + func (q Query) GetArtistsByNames(names ...string) ([]Artist, bool) + func (q Query) GetArtistsByURIs(uris ...string) ([]Artist, bool) + func (q Query) GetPlaylistByName(input string) (Playlist, bool) + func (q Query) GetPlaylistByURI(uri string) (Playlist, bool) + func (q Query) GetPlaylistsByNames(names ...string) ([]Playlist, bool) + func (q Query) GetPlaylistsByURIs(uris ...string) ([]Playlist, bool) + func (q Query) GetTrackByName(input string) (Track, bool) + func (q Query) GetTrackByURI(uri string) (Track, bool) + func (q Query) GetTracksByNames(names ...string) ([]Track, bool) + func (q Query) GetTracksByURIs(uris ...string) ([]Track, bool) + type Track struct + Album struct{ ... } + Artists []struct{ ... } + AvailableMarkets []string + DiscNumber int + DurationMs int + Explicit bool + ExternalIds struct{ ... } + ExternalUrls struct{ ... } + Href string + ID string + IsLocal bool + Name string + Popularity int + PreviewURL string + TrackNumber int + Type string + URI string + func (t *Track) GetAlbumName() string + func (t *Track) GetAlbumURI() string + func (t *Track) GetArtistURIs() []string + func (t *Track) GetDurationMs() int + func (t *Track) GetName() string + func (t *Track) GetURI() string + type User struct + func NewUser(client_key, secret_key string, scopes ...string) (*User, bool) + func (u *User) ActiveDevice() (Device, bool) + func (u *User) AddTrackToQueue(q Query, i interface{}) bool + func (u *User) CurrentRepeatState() (string, bool) + func (u *User) CurrentTrackProgress() (float64, bool) + func (u *User) DoesFollowArtists(q Query, i ...interface{}) ([]bool, bool) + func (u *User) FollowArtists(q Query, i ...interface{}) bool + func (u *User) FollowUsers(q Query, i ...interface{}) bool + func (u *User) GetCurrentProfile() (Profile, bool) + func (u *User) GetCurrentlyPlayingTrack() (Track, bool) + func (u *User) GetFollowedArtists(getAll bool, limit int) ([]Artist, bool) + func (u *User) GetNumFollowedArtists() (int, bool) + func (u *User) GetNumSavedAlbums() (int, bool) + func (u *User) GetNumSavedPlaylists() (int, bool) + func (u *User) GetNumSavedTracks() (int, bool) + func (u *User) GetPlaybackDevices() ([]Device, bool) + func (u *User) GetSavedAlbums(getAll bool, limit int) ([]Album, bool) + func (u *User) GetSavedPlaylists(getAll bool, limit int) ([]Playlist, bool) + func (u *User) GetSavedTracks(getAll bool, limit int) ([]Track, bool) + func (u *User) GetScopes() []string + func (u *User) GetTrackAudioAnalysis(q Query, i interface{}) (AudioAnalysis, bool) + func (u *User) GetTrackAudioFeatures(q Query, i interface{}) (AudioFeatures, bool) + func (u *User) HasSavedAlbums(q Query, i ...interface{}) ([]bool, bool) + func (u *User) HasSavedTracks(q Query, i ...interface{}) ([]bool, bool) + func (u *User) IsPlaying() (bool, bool) + func (u *User) IsShuffling() (bool, bool) + func (u *User) Pause() bool + func (u *User) Play() bool + func (u *User) SaveAlbums(q Query, i ...interface{}) bool + func (u *User) SavePlaylists(q Query, i ...interface{}) bool + func (u *User) SaveTracks(q Query, i ...interface{}) bool + func (u *User) SeekToPosition(seconds float64) bool + func (u *User) SetRepeat(on bool, track bool) bool + func (u *User) SetShuffle(on bool) bool + func (u *User) SetVolume(vol int) bool + func (u *User) SkipToNext() bool + func (u *User) SkipToPrev() bool + func (u *User) TransferPlayback(device interface{}, play bool) bool + func (u *User) UnfollowArtists(q Query, i ...interface{}) bool + func (u *User) UnfollowUsers(q Query, i ...interface{}) bool + func (u *User) UnsaveAlbums(q Query, i ...interface{}) bool + func (u *User) UnsavePlaylists(q Query, i ...interface{}) bool + func (u *User) UnsaveTracks(q Query, i ...interface{}) bool v0.2.0 May 24, 2022