spotify

package
v0.0.0-...-04d3c74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpotifyClient

type SpotifyClient struct {
	Client spotify.Client
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL