Documentation
¶
Index ¶
- Constants
- func AlbumTracks(s *auth.Session, albumID string) (*[]AlbumTrack, error)
- func PlaylistTracks(s *auth.Session, playlistID string) (*[]Track, error)
- func UserPlaylists(s *auth.Session) (*[]Playlist, error)
- type Album
- type AlbumTrack
- type AlbumsResponse
- type Artist
- type ArtistsResponse
- type Episode
- type EpisodesResponse
- type Followers
- type Image
- type Playlist
- type PlaylistsResponse
- type Response
- type ResumePoint
- type SearchResult
- type Show
- type ShowsResponse
- type Track
- type TracksResponse
- type User
Constants ¶
View Source
const ( TRACK_TYPE = "track" ALBUM_TYPE = "album" PLAYLIST_TYPE = "playlist" )
Variables ¶
This section is empty.
Functions ¶
func AlbumTracks ¶ added in v0.2.0
func AlbumTracks(s *auth.Session, albumID string) (*[]AlbumTrack, error)
func PlaylistTracks ¶ added in v0.2.0
Types ¶
type Album ¶
type Album struct { Images []Image `json:"images"` Artists []Artist `json:"artists"` TotalTracks int `json:"total_tracks"` AlbumType string `json:"album_type"` ID string `json:"id"` Name string `json:"name"` ReleaseDate string `json:"release_date"` Type string `json:"type"` Uri string `json:"uri"` }
type AlbumTrack ¶ added in v0.2.0
type AlbumTrack struct { Name string `json:"name"` Uri string `json:"uri"` Artists []Artist `json:"artists"` DurationMs int `json:"duration_ms"` ID string `json:"id"` }
Simplified track struct that doesn't link back to the album.
type AlbumsResponse ¶ added in v0.2.0
type ArtistsResponse ¶ added in v0.2.0
type Episode ¶
type EpisodesResponse ¶ added in v0.2.0
type Playlist ¶
type Playlist struct { Images []Image `json:"images"` Description string `json:"description"` ID string `json:"id"` Name string `json:"name"` Followers Followers `json:"followers"` Public bool `json:"public"` Tracks TracksResponse `json:"tracks"` URI string `json:"uri"` ExternalUrls struct { Spotify string `json:"spotify"` } `json:"external_urls"` Owner struct { Followers Followers `json:"followers"` ID string `json:"id"` Type string `json:"type"` URI string `json:"uri"` DisplayName string `json:"display_name"` } `json:"owner"` }
type PlaylistsResponse ¶ added in v0.2.0
type Response ¶ added in v0.2.0
type Response struct { Tracks TracksResponse `json:"tracks"` Artists ArtistsResponse `json:"artists"` Albums AlbumsResponse `json:"albums"` Playlists PlaylistsResponse `json:"playlists"` Shows ShowsResponse `json:"shows"` Episodes EpisodesResponse `json:"episodes"` }
type ResumePoint ¶
type SearchResult ¶ added in v0.2.0
type Show ¶
type ShowsResponse ¶ added in v0.2.0
type Track ¶
type TracksResponse ¶ added in v0.2.0
type User ¶ added in v0.2.0
type User struct { DisplayName string `json:"display_name"` Email string `json:"email"` ID string `json:"id"` ExternalURLs struct { Spotify string `json:"spotify"` } `json:"external_urls"` Followers struct { Href string `json:"href"` Total int `json:"total"` } `json:"followers"` Images []struct { URL string `json:"url"` Height int `json:"height"` Width int `json:"width"` } `json:"images"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.