Documentation ¶
Index ¶
- func NewOAuth2Server(ctx context.Context, callbackPort int) (int, chan string, error)
- type BlobCredentials
- type InteractiveCredentials
- type Options
- type Session
- func (s *Session) Accesspoint() *ap.Accesspoint
- func (s *Session) AudioKey() *audio.KeyProvider
- func (s *Session) Close()
- func (s *Session) Dealer() *dealer.Dealer
- func (s *Session) Spclient() *spclient.Spclient
- func (s *Session) StoredCredentials() []byte
- func (s *Session) Username() string
- func (s *Session) WebApi(method string, path string, query url.Values, header http.Header, body []byte) (*http.Response, error)
- type SpotifyTokenCredentials
- type StoredCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlobCredentials ¶
type InteractiveCredentials ¶
type InteractiveCredentials struct {
CallbackPort int
}
type Options ¶
type Options struct { // DeviceType is the Spotify showed device type, required. DeviceType devicespb.DeviceType // DeviceId is the Spotify device ID, required. DeviceId string // Credentials is the credentials to be used for authentication, required. Credentials any // ClientToken is the Spotify client token, leave empty to let the server generate one. ClientToken string // Resolver is an instance of apresolve.ApResolver, leave nil to use the default one. Resolver *apresolve.ApResolver }
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func NewSessionFromOptions ¶
func (*Session) Accesspoint ¶
func (s *Session) Accesspoint() *ap.Accesspoint
func (*Session) AudioKey ¶
func (s *Session) AudioKey() *audio.KeyProvider
func (*Session) StoredCredentials ¶
type SpotifyTokenCredentials ¶
type StoredCredentials ¶
Click to show internal directories.
Click to hide internal directories.