README ¶ Spotify Token last about an hour: "accessTokenExpirationTimestampMs":1633838840465 "accessTokenExpirationTimestampMs":1633842139279 https://github.com/AliAkhtari78/SpotifyScraper/issues/10 https://github.com/brianstrauch/spotify/issues/11 Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants Variables type Album type Config func NewConfig() (*Config, error) func (c Config) Album(id string) (*Album, error) func (c *Config) Decode(r io.Reader) error func (c Config) Encode(w io.Writer) error func (c Config) Playlist(id string) (*Playlist, error) type Playlist type Track 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) type Playlist ¶ type Playlist struct { Tracks struct { Items []struct { Track Track } } } type Track ¶ added in v1.34.3 type Track struct { Name string } Source Files ¶ View all Source files spotify.go Click to show internal directories. Click to hide internal directories.