Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSpotifyClient ¶
Types ¶
type Album ¶
type Album struct { ReleaseDatePrecision string `json:"release_date_precision"` ExternalUrls ExternalURL `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Name string `json:"name"` ReleaseDate string `json:"release_date"` AlbumType string `json:"album_type"` Type string `json:"type"` URI string `json:"uri"` Artists []Artist `json:"artists"` AvailableMarkets []string `json:"available_markets"` Images []Image `json:"images"` TotalTracks int `json:"total_tracks"` }
type AlbumItem ¶
type AlbumItem struct { ReleaseDatePrecision string `json:"release_date_precision"` ExternalURLs ExternalURL `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Name string `json:"name"` ReleaseDate string `json:"release_date"` AlbumType string `json:"album_type"` Type string `json:"type"` URI string `json:"uri"` Artists []Artist `json:"artists"` Images []Image `json:"images"` TotalTracks int `json:"total_tracks"` IsPlayable bool `json:"is_playable"` }
type AlbumResponse ¶
type AlbumResponse struct {
SearchResult SearchResult[AlbumItem] `json:"albums"`
}
type ExternalID ¶
type ExternalID struct {
ISRC string `json:"isrc"`
}
type ExternalURL ¶
type ExternalURL struct {
Spotify string `json:"spotify"`
}
type SearchResult ¶
type SpotifyAuthResponse ¶
type SpotifyClient ¶
type SpotifyClient struct {
// contains filtered or unexported fields
}
func GetSpotifyClient ¶
func GetSpotifyClient() (*SpotifyClient, error)
func (*SpotifyClient) GetAlbumInfo ¶
func (*SpotifyClient) GetTrackInfo ¶
type TrackItem ¶
type TrackItem struct { Album Album `json:"album"` Name string `json:"name"` URI string `json:"uri"` Type string `json:"type"` ExternalIds ExternalID `json:"external_ids"` ExternalUrls ExternalURL `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` PreviewURL string `json:"preview_url"` Artists []Artist `json:"artists"` AvailableMarkets []string `json:"available_markets"` DurationMs int `json:"duration_ms"` Popularity int `json:"popularity"` TrackNumber int `json:"track_number"` DiscNumber int `json:"disc_number"` IsLocal bool `json:"is_local"` Explicit bool `json:"explicit"` }
type TracksResponse ¶
type TracksResponse struct {
SearchResult SearchResult[TrackItem] `json:"tracks"`
}
Click to show internal directories.
Click to hide internal directories.