Version: v0.0.0-...-fcfe891 Latest Latest

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

Go to latest
Published: Mar 13, 2018 License: MIT Imports: 1 Imported by: 0




This section is empty.


This section is empty.


func Login

func Login(username string, password string, deviceName string) (*core.Session, error)

Login to Spotify using username and password

func LoginDiscovery

func LoginDiscovery(cacheBlobPath string, deviceName string) (*core.Session, error)

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

func LoginDiscoveryBlob(username string, blob string, deviceName string) (*core.Session, error)

Login using an authentication blob through Spotify Connect discovery system, reading an existing blob data. To read from a file, see LoginDiscoveryBlobFile.

func LoginDiscoveryBlobFile

func LoginDiscoveryBlobFile(cacheBlobPath string, deviceName string) (*core.Session, error)

Login from credentials at cacheBlobPath previously saved by LoginDiscovery. Similar to LoginDiscoveryBlob, except it reads it directly from a file.

func LoginOAuth

func LoginOAuth(deviceName string, clientId string, clientSecret string) (*core.Session, error)

Login to Spotify using the OAuth method

func LoginSaved

func LoginSaved(username string, authData []byte, deviceName string) (*core.Session, error)

Login to Spotify using an existing authData blob


This section is empty.


Path Synopsis

Jump to

Keyboard shortcuts

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