spotify

package
v1.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: OSL-3.0 Imports: 4 Imported by: 0

README

October 10 2021

Token last about an hour:

"accessTokenExpirationTimestampMs":1633838840465
"accessTokenExpirationTimestampMs":1633842139279

Album

GET /album/4Aumawi2PZuCxo10dQc3vn HTTP/1.1
Host: open.spotify.com
User-Agent: Firefox/60

Playlist

GET /playlist/6rZ28nCpmG5Wo1Ik64EoDm HTTP/1.1
Host: open.spotify.com
User-Agent: Firefox/60

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AccessToken string
}

func NewConfig

func NewConfig() (*Config, error)

func (*Config) Decode

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

func (Config) Encode

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

func (Config) Playlist

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

type Playlist

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

Jump to

Keyboard shortcuts

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