Documentation ¶
Index ¶
- func Login(username string, password string, deviceName string) (*core.Session, error)
- func LoginDiscovery(cacheBlobPath string, deviceName string) (*core.Session, error)
- func LoginDiscoveryBlob(username string, blob string, deviceName string) (*core.Session, error)
- func LoginDiscoveryBlobFile(cacheBlobPath string, deviceName string) (*core.Session, error)
- func LoginOAuth(deviceName string, clientId string, clientSecret string) (*core.Session, error)
- func LoginSaved(username string, authData []byte, deviceName string) (*core.Session, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoginDiscovery ¶
Registers librespot as a Spotify Connect device via mdns. When user connects, logs on to Spotify and saves credentials in file at cacheBlobPath. Once saved, the blob credentials allow the program to connect to other Spotify Connect devices and control them.
func LoginDiscoveryBlob ¶
Login using an authentication blob through Spotify Connect discovery system, reading an existing blob data. To read from a file, see LoginDiscoveryBlobFile.
func LoginDiscoveryBlobFile ¶
Login from credentials at cacheBlobPath previously saved by LoginDiscovery. Similar to LoginDiscoveryBlob, except it reads it directly from a file.
func LoginOAuth ¶
Login to Spotify using the OAuth method
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.