Documentation
¶
Index ¶
- type Actions
- type AlbumArtist
- type AlbumExternalURLs
- type AlbumItems
- type AlbumRestrictions
- type Albums
- type ArtistItems
- type Artists
- type ArtistsExternalURLs
- type ArtistsFollowers
- type AudiobookAuthor
- type AudiobookCopyright
- type AudiobookItems
- type AudiobookNarrator
- type Audiobooks
- type Body
- type Context
- type DeviceType
- type Disallows
- type EpisodeItems
- type EpisodeRestrictions
- type EpisodeResumePoint
- type Episodes
- type ExternalIDs
- type Image
- type Item
- type PlayerAlbum
- type PlayerArtist
- type PlaylistItems
- type PlaylistOwner
- type PlaylistOwnerFollowers
- type PlaylistTrackInfo
- type Playlists
- type SavedAlbum
- type SavedArtist
- type SavedExternalUrls
- type SavedFollowers
- type SavedItem
- type SavedRestrictions
- type SavedTrack
- type SavedTracks
- type SearchPromptResults
- type SelectionPromptConfig
- type ShowCopyright
- type ShowItems
- type Shows
- type SpotifyAPIError
- type SpotifyError
- type SpotifyResponse
- type SpotifySearchQuery
- type SpotifySearchResponse
- type TrackItems
- type Tracks
- type TracksAlbums
- type TracksArtists
- type UrlParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumArtist ¶
type AlbumExternalURLs ¶
type AlbumExternalURLs struct {
Spotify string `json:"spotify"`
}
type AlbumItems ¶
type AlbumItems struct { AlbumType string `json:"album_type"` TotalTracks int `json:"total_tracks"` AvailableMarkets []string `json:"available_markets"` ExternalURLs map[string]string `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Images []Image `json:"images"` Name string `json:"name"` ReleaseDate string `json:"release_date"` ReleaseDatePrecision string `json:"release_date_precision"` Restrictions AlbumRestrictions `json:"restrictions"` Type string `json:"type"` URI string `json:"uri"` Artists []AlbumArtist `json:"artists"` }
type AlbumRestrictions ¶
type AlbumRestrictions struct {
Reason string `json:"reason"`
}
type Albums ¶
type Albums struct { Body Items []AlbumItems `json:"items"` }
type ArtistItems ¶
type ArtistItems struct { ExternalURLs ArtistsExternalURLs `json:"external_urls"` Followers ArtistsFollowers `json:"followers"` Genres []string `json:"genres"` Href string `json:"href"` ID string `json:"id"` Images []Image `json:"images"` Name string `json:"name"` Popularity int `json:"popularity"` Type string `json:"type"` URI string `json:"uri"` }
type Artists ¶
type Artists struct { Body Items []ArtistItems `json:"items"` }
type ArtistsExternalURLs ¶
type ArtistsExternalURLs struct {
Spotify string `json:"spotify"`
}
type ArtistsFollowers ¶
type AudiobookAuthor ¶
type AudiobookAuthor struct {
Name string `json:"name"`
}
type AudiobookCopyright ¶
type AudiobookItems ¶
type AudiobookItems struct { Authors []AudiobookAuthor `json:"authors"` AvailableMarkets []string `json:"available_markets"` Copyrights []AudiobookCopyright `json:"copyrights"` Description string `json:"description"` HTMLDescription string `json:"html_description"` Edition string `json:"edition"` Explicit bool `json:"explicit"` ExternalURLs map[string]string `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Images []Image `json:"images"` Languages []string `json:"languages"` MediaType string `json:"media_type"` Name string `json:"name"` Narrators []AudiobookNarrator `json:"narrators"` Publisher string `json:"publisher"` Type string `json:"type"` URI string `json:"uri"` TotalChapters int `json:"total_chapters"` }
type AudiobookNarrator ¶
type AudiobookNarrator struct {
Name string `json:"name"`
}
type Audiobooks ¶
type Audiobooks struct { Body Items []AudiobookItems `json:"items"` }
type DeviceType ¶
type DeviceType struct { Name string `json:"name"` IsActive bool `json:"is_active"` ID string `json:"id"` IsPrivateSession bool `json:"is_private_session"` IsRestricted bool `json:"is_restricted"` SupportsVolume bool `json:"supports_volume"` Type string `json:"type"` VolumePercent int `json:"volume_percent"` }
type EpisodeItems ¶
type EpisodeItems struct { AudioPreviewURL string `json:"audio_preview_url"` Description string `json:"description"` HTMLDescription string `json:"html_description"` DurationMS int `json:"duration_ms"` Explicit bool `json:"explicit"` ExternalURLs map[string]string `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Images []Image `json:"images"` IsExternallyHosted bool `json:"is_externally_hosted"` IsPlayable bool `json:"is_playable"` Language string `json:"language"` Languages []string `json:"languages"` Name string `json:"name"` ReleaseDate string `json:"release_date"` ReleaseDatePrecision string `json:"release_date_precision"` ResumePoint EpisodeResumePoint `json:"resume_point"` Type string `json:"type"` URI string `json:"uri"` Restrictions EpisodeRestrictions `json:"restrictions"` }
type EpisodeRestrictions ¶
type EpisodeRestrictions struct {
Reason string `json:"reason"`
}
type EpisodeResumePoint ¶
type Episodes ¶
type Episodes struct { Body Items []EpisodeItems `json:"items"` }
type ExternalIDs ¶
type Item ¶
type Item struct { Album PlayerAlbum `json:"album"` Artists []PlayerArtist `json:"artists"` AvailableMarkets []string `json:"available_markets"` DiscNumber int `json:"disc_number"` DurationMS int `json:"duration_ms"` Explicit bool `json:"explicit"` ExternalIDs map[string]string `json:"external_ids"` ExternalURLs map[string]string `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` IsLocal bool `json:"is_local"` Name string `json:"name"` Popularity int `json:"popularity"` PreviewURL string `json:"preview_url"` TrackNumber int `json:"track_number"` Type string `json:"type"` URI string `json:"uri"` }
type PlayerAlbum ¶
type PlayerAlbum struct { AlbumType string `json:"album_type"` Artists []PlayerArtist `json:"artists"` AvailableMarkets []string `json:"available_markets"` ExternalURLs map[string]string `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Images []Image `json:"images"` Name string `json:"name"` ReleaseDate string `json:"release_date"` ReleaseDatePrecision string `json:"release_date_precision"` TotalTracks int `json:"total_tracks"` Type string `json:"type"` URI string `json:"uri"` }
type PlayerArtist ¶
type PlaylistItems ¶
type PlaylistItems struct { Collaborative bool `json:"collaborative"` Description string `json:"description"` ExternalURLs map[string]string `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Images []Image `json:"images"` Name string `json:"name"` Owner PlaylistOwner `json:"owner"` Public bool `json:"public"` SnapshotID string `json:"snapshot_id"` Tracks PlaylistTrackInfo `json:"tracks"` Type string `json:"type"` URI string `json:"uri"` }
type PlaylistOwner ¶
type PlaylistOwnerFollowers ¶
type PlaylistTrackInfo ¶
type Playlists ¶
type Playlists struct { Body Items []PlaylistItems `json:"items"` }
type SavedAlbum ¶
type SavedAlbum struct { AlbumType string `json:"album_type"` TotalTracks int `json:"total_tracks"` AvailableMarkets []string `json:"available_markets"` ExternalUrls SavedExternalUrls `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Images []Image `json:"images"` Name string `json:"name"` ReleaseDate string `json:"release_date"` ReleaseDatePrecision string `json:"release_date_precision"` Restrictions SavedRestrictions `json:"restrictions"` Type string `json:"type"` Uri string `json:"uri"` Artists []SavedArtist `json:"artists"` }
type SavedArtist ¶
type SavedArtist struct { ExternalUrls SavedExternalUrls `json:"external_urls"` Followers SavedFollowers `json:"followers"` Genres []string `json:"genres"` Href string `json:"href"` ID string `json:"id"` Images []Image `json:"images"` Name string `json:"name"` Popularity int `json:"popularity"` Type string `json:"type"` Uri string `json:"uri"` }
type SavedExternalUrls ¶
type SavedExternalUrls struct {
Spotify string `json:"spotify"`
}
type SavedFollowers ¶
type SavedItem ¶
type SavedItem struct { AddedAt string `json:"added_at"` Track SavedTrack `json:"track"` }
type SavedRestrictions ¶
type SavedRestrictions struct {
Reason string `json:"reason"`
}
type SavedTrack ¶
type SavedTrack struct { Album SavedAlbum `json:"album"` Artists []SavedArtist `json:"artists"` AvailableMarkets []string `json:"available_markets"` DiscNumber int `json:"disc_number"` DurationMS int `json:"duration_ms"` Explicit bool `json:"explicit"` ExternalIDs ExternalIDs `json:"external_ids"` ExternalUrls SavedExternalUrls `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` IsPlayable bool `json:"is_playable"` LinkedFrom interface{} `json:"linked_from"` // Use interface{} if the type is not known or varies Restrictions SavedRestrictions `json:"restrictions"` Name string `json:"name"` Popularity int `json:"popularity"` PreviewUrl string `json:"preview_url"` TrackNumber int `json:"track_number"` Type string `json:"type"` Uri string `json:"uri"` IsLocal bool `json:"is_local"` }
type SavedTracks ¶
type SearchPromptResults ¶
type SelectionPromptConfig ¶
type ShowCopyright ¶
type ShowItems ¶
type ShowItems struct { AvailableMarkets []string `json:"available_markets"` Copyrights []ShowCopyright `json:"copyrights"` Description string `json:"description"` HTMLDescription string `json:"html_description"` Explicit bool `json:"explicit"` ExternalURLs map[string]string `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Images []Image `json:"images"` IsExternallyHosted bool `json:"is_externally_hosted"` Languages []string `json:"languages"` MediaType string `json:"media_type"` Name string `json:"name"` Publisher string `json:"publisher"` Type string `json:"type"` URI string `json:"uri"` TotalEpisodes int `json:"total_episodes"` }
type SpotifyAPIError ¶
type SpotifyAPIError struct {
Detail SpotifyError
}
func (SpotifyAPIError) Error ¶
func (e SpotifyAPIError) Error() string
type SpotifyError ¶
type SpotifyResponse ¶
type SpotifyResponse struct { Device DeviceType `json:"device"` ShuffleState bool `json:"shuffle_state"` RepeatState string `json:"repeat_state"` Timestamp int64 `json:"timestamp"` Context Context `json:"context"` ProgressMS int `json:"progress_ms"` Item Item `json:"item"` CurrentlyPlayingType string `json:"currently_playing_type"` Actions Actions `json:"actions"` IsPlaying bool `json:"is_playing"` }
type SpotifySearchQuery ¶
type SpotifySearchResponse ¶
type TrackItems ¶
type TrackItems struct { Album TracksAlbums `json:"album"` Artists []TracksArtists `json:"artists"` AvailableMarkets []string `json:"available_markets"` DiscNumber int `json:"disc_number"` DurationMs int `json:"duration_ms"` Explicit bool `json:"explicit"` ExternalIDs map[string]string `json:"external_ids"` ExternalUrls map[string]string `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` IsLocal bool `json:"is_local"` Name string `json:"name"` Popularity int `json:"popularity"` PreviewURL string `json:"preview_url"` // using string instead of null for simplicity, adjust accordingly TrackNumber int `json:"track_number"` Type string `json:"type"` URI string `json:"uri"` }
type Tracks ¶
type Tracks struct { Body Items []TrackItems `json:"items"` }
type TracksAlbums ¶
type TracksAlbums struct { AlbumType string `json:"album_type"` Artists []TracksArtists `json:"artists"` AvailableMarkets []string `json:"available_markets"` ExternalUrls map[string]string `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Images []Image `json:"images"` Name string `json:"name"` ReleaseDate string `json:"release_date"` ReleaseDatePrecision string `json:"release_date_precision"` TotalTracks int `json:"total_tracks"` Type string `json:"type"` URI string `json:"uri"` }
type TracksArtists ¶
Click to show internal directories.
Click to hide internal directories.