Documentation ¶
Index ¶
- func AddSongsToPlaylist(client *http.Client, playlistID string, songURIS string) []byte
- func CheckError(err error)
- func CreatePlaylist(client *http.Client, method string) (string, string)
- func SearchSong(client *http.Client, method string, query string) string
- type PlaylistDetails
- type PlaylistResponse
- type TrackResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSongsToPlaylist ¶
func CheckError ¶
func CheckError(err error)
Types ¶
type PlaylistDetails ¶
type PlaylistDetails struct { Name string `json:"name"` Description string `json:"description"` Public bool `json:"public"` }
structure of POST data to create new playlist
type PlaylistResponse ¶
type TrackResponse ¶
type TrackResponse struct { Tracks struct { Items []struct { URI string `json:"uri"` } `json:"items"` } `json:"tracks"` }
Click to show internal directories.
Click to hide internal directories.