Documentation ¶
Index ¶
- type Album
- type ArtistAlbums
- type SpotifyAlbum
- type SpotifyAlbums
- type SpotifyArtist
- type SpotifyClient
- func (c *SpotifyClient) Authenticate() error
- func (c SpotifyClient) GetAlbum(id string) (album SpotifyAlbum, e error)
- func (c SpotifyClient) GetAlbumTracks(id string, options map[string]string) (tracks SpotifyTracks, e error)
- func (c SpotifyClient) GetAlbums(ids []string) (albums SpotifyAlbums, e error)
- func (c SpotifyClient) GetArtist(id string) (artist SpotifyArtist, e error)
- func (c SpotifyClient) GetArtistAlbums(id string) (albums ArtistAlbums, e error)
- func (c SpotifyClient) Search(search string, catagory string) (results SpotifySearchResults, e error)
- type SpotifySearchResults
- type SpotifyTracks
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtistAlbums ¶
type ArtistAlbums struct { Href string `json:"href"` Items []struct { AlbumGroup string `json:"album_group"` AlbumType string `json:"album_type"` Artists []struct { ExternalUrls struct { Spotify string `json:"spotify"` } `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` URI string `json:"uri"` } `json:"artists"` AvailableMarkets []string `json:"available_markets"` ExternalUrls struct { Spotify string `json:"spotify"` } `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Images []struct { Height int64 `json:"height"` URL string `json:"url"` Width int64 `json:"width"` } `json:"images"` Name string `json:"name"` ReleaseDate string `json:"release_date"` ReleaseDatePrecision string `json:"release_date_precision"` TotalTracks int64 `json:"total_tracks"` Type string `json:"type"` URI string `json:"uri"` } `json:"items"` Limit int64 `json:"limit"` Next string `json:"next"` Offset int64 `json:"offset"` Previous interface{} `json:"previous"` Total int64 `json:"total"` }
type SpotifyAlbum ¶
type SpotifyAlbum struct { AlbumType string `json:"album_type"` Artists []struct { ExternalUrls struct { Spotify string `json:"spotify"` } `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` URI string `json:"uri"` } `json:"artists"` AvailableMarkets []string `json:"available_markets"` Copyrights []struct { Text string `json:"text"` Type string `json:"type"` } `json:"copyrights"` ExternalIds struct { Upc string `json:"upc"` } `json:"external_ids"` ExternalUrls struct { Spotify string `json:"spotify"` } `json:"external_urls"` Genres []interface{} `json:"genres"` Href string `json:"href"` ID string `json:"id"` Images []struct { Height int64 `json:"height"` URL string `json:"url"` Width int64 `json:"width"` } `json:"images"` Label string `json:"label"` Name string `json:"name"` Popularity int64 `json:"popularity"` ReleaseDate string `json:"release_date"` ReleaseDatePrecision string `json:"release_date_precision"` TotalTracks int64 `json:"total_tracks"` Tracks struct { Href string `json:"href"` Items []struct { Artists []struct { ExternalUrls struct { Spotify string `json:"spotify"` } `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` URI string `json:"uri"` } `json:"artists"` AvailableMarkets []string `json:"available_markets"` DiscNumber int64 `json:"disc_number"` DurationMs int64 `json:"duration_ms"` Explicit bool `json:"explicit"` ExternalUrls struct { Spotify string `json:"spotify"` } `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` IsLocal bool `json:"is_local"` Name string `json:"name"` PreviewURL string `json:"preview_url"` TrackNumber int64 `json:"track_number"` Type string `json:"type"` URI string `json:"uri"` } `json:"items"` Limit int64 `json:"limit"` Next interface{} `json:"next"` Offset int64 `json:"offset"` Previous interface{} `json:"previous"` Total int64 `json:"total"` } `json:"tracks"` Type string `json:"type"` URI string `json:"uri"` }
type SpotifyAlbums ¶
type SpotifyAlbums struct {
Albums []SpotifyAlbum
}
type SpotifyArtist ¶
type SpotifyArtist struct { ExternalUrls struct { Spotify string `json:"spotify"` } `json:"external_urls"` Followers struct { Href interface{} `json:"href"` Total int64 `json:"total"` } `json:"followers"` Genres []string `json:"genres"` Href string `json:"href"` ID string `json:"id"` Images []struct { Height int64 `json:"height"` URL string `json:"url"` Width int64 `json:"width"` } `json:"images"` Name string `json:"name"` Popularity int64 `json:"popularity"` Type string `json:"type"` URI string `json:"uri"` }
type SpotifyClient ¶
func (*SpotifyClient) Authenticate ¶
func (c *SpotifyClient) Authenticate() error
func (SpotifyClient) GetAlbum ¶
func (c SpotifyClient) GetAlbum(id string) (album SpotifyAlbum, e error)
func (SpotifyClient) GetAlbumTracks ¶
func (c SpotifyClient) GetAlbumTracks(id string, options map[string]string) (tracks SpotifyTracks, e error)
func (SpotifyClient) GetAlbums ¶
func (c SpotifyClient) GetAlbums(ids []string) (albums SpotifyAlbums, e error)
func (SpotifyClient) GetArtist ¶
func (c SpotifyClient) GetArtist(id string) (artist SpotifyArtist, e error)
func (SpotifyClient) GetArtistAlbums ¶
func (c SpotifyClient) GetArtistAlbums(id string) (albums ArtistAlbums, e error)
func (SpotifyClient) Search ¶
func (c SpotifyClient) Search(search string, catagory string) (results SpotifySearchResults, e error)
type SpotifySearchResults ¶
type SpotifySearchResults struct { Artists struct { Href string `json:"href"` Items []struct { ExternalUrls struct { Spotify string `json:"spotify"` } `json:"external_urls"` Followers struct { Href interface{} `json:"href"` Total int64 `json:"total"` } `json:"followers"` Genres []string `json:"genres"` Href string `json:"href"` ID string `json:"id"` Images []struct { Height int64 `json:"height"` URL string `json:"url"` Width int64 `json:"width"` } `json:"images"` Name string `json:"name"` Popularity int64 `json:"popularity"` Type string `json:"type"` URI string `json:"uri"` } `json:"items"` Limit int64 `json:"limit"` Next interface{} `json:"next"` Offset int64 `json:"offset"` Previous interface{} `json:"previous"` Total int64 `json:"total"` } `json:"artists"` Albums struct { Href string `json:"href"` Items []SpotifyAlbum `json: "items"` Limit int64 `json:"limit"` Next interface{} `json:"next"` Offset int64 `json:"offset"` Previous interface{} `json:"previous"` Total int64 `json:"total"` } }
type SpotifyTracks ¶
type SpotifyTracks struct { Href string `json:"href"` Items []struct { Artists []struct { ExternalUrls struct { Spotify string `json:"spotify"` } `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` URI string `json:"uri"` } `json:"artists"` AvailableMarkets []string `json:"available_markets"` DiscNumber int64 `json:"disc_number"` DurationMs int64 `json:"duration_ms"` Explicit bool `json:"explicit"` ExternalUrls struct { Spotify string `json:"spotify"` } `json:"external_urls"` Href string `json:"href"` ID string `json:"id"` IsLocal bool `json:"is_local"` Name string `json:"name"` PreviewURL string `json:"preview_url"` TrackNumber int64 `json:"track_number"` Type string `json:"type"` URI string `json:"uri"` } `json:"items"` Limit int64 `json:"limit"` Next interface{} `json:"next"` Offset int64 `json:"offset"` Previous interface{} `json:"previous"` Total int64 `json:"total"` }
Click to show internal directories.
Click to hide internal directories.