Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpotifyClient ¶
SpotifyClient is a wrapper around the Spotify API client
func NewSpotifyClient ¶
func NewSpotifyClient(clientID string, clientSecret string) SpotifyClient
NewSpotifyClient creates a new Spotify API client with client credentials
func (*SpotifyClient) SearchTrack ¶
func (sc *SpotifyClient) SearchTrack(track string) (spotify.FullTrack, error)
SearchTrack searches for a track on Spotify This function performs a search on Spotify for the given track and returns the first result. If no tracks are found, it returns an error.
Click to show internal directories.
Click to hide internal directories.