MCPcopy Create free account
hub / github.com/dinofizz/diskplayer / NewClient

Function NewClient

client.go:9–12  ·  view source on GitHub ↗

Returns an authenticated Spotify client object, or an error if encountered.

(a *spotify.Authenticator, t *oauth2.Token)

Source from the content-addressed store, hash-verified

7
8// Returns an authenticated Spotify client object, or an error if encountered.
9func NewClient(a *spotify.Authenticator, t *oauth2.Token) *SpotifyClient {
10 c := a.NewClient(t)
11 return &SpotifyClient{client: &c}
12}
13
14type Client interface {
15 PlayerDevices() ([]spotify.PlayerDevice, error)

Callers 2

mainFunction · 0.92
TestNewClientFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestNewClientFunction · 0.68