librespot

package
v0.0.0-...-8904ad9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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