spotify

package
v1.37.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: OSL-3.0 Imports: 5 Imported by: 0

README

Spotify

Token last about an hour:

"accessTokenExpirationTimestampMs":1633838840465
"accessTokenExpirationTimestampMs":1633842139279

Documentation

Index

Constants

View Source
const Origin = "https://api.spotify.com"

Variables

View Source
var Verbose = mech.Verbose

Functions

This section is empty.

Types

type Album added in v1.34.3

type Album struct {
	Tracks struct {
		Items []Track
	}
}

type Config

type Config struct {
	AccessToken string
}

func NewConfig

func NewConfig() (*Config, error)

func (Config) Album added in v1.34.3

func (c Config) Album(id string) (*Album, error)

func (*Config) Decode

func (c *Config) Decode(r io.Reader) error

This can be used to decode a previously saved token.

func (Config) Encode

func (c Config) Encode(w io.Writer) error

func (Config) Playlist

func (c Config) Playlist(id string) (*Playlist, error)

func (Config) Track added in v1.34.5

func (c Config) Track(id string) (*Track, error)

type Playlist

type Playlist struct {
	Tracks struct {
		Items []struct {
			Track Track
		}
	}
}

type Track added in v1.34.3

type Track struct {
	ID   string
	Name string
}

Jump to

Keyboard shortcuts

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