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