spotify

package
v0.0.0-...-d660ffc Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	Id      string   `json:"id"`
	Name    string   `json:"name"`
	Artists []Artist `json:"artists"`
}

type Artist

type Artist struct {
	Name string `json:"name"`
	Id   string `json:"id"`
}

type Track

type Track struct {
	Id       string   `json:"id"`
	Name     string   `json:"name"`
	Album    Album    `json:"album"`
	Artists  []Artist `json:"artists"`
	Duration int      `json:"duration_ms"`
}

func GetLibrary

func GetLibrary(auth *oauth2.AuthData) ([]Track, error)

type TrackInfo

type TrackInfo struct {
	AddedAt string `json:"added_at"`
	Track   Track  `json:"track"`
}

type TracksData

type TracksData struct {
	Total    int         `json:"total"`
	Next     string      `json:"next"`
	Previous string      `json:"previous"`
	Href     string      `json:"href"`
	Limit    int         `json:"limit"`
	Offset   int         `json:"offset"`
	Items    []TrackInfo `json:"items"`
}

Jump to

Keyboard shortcuts

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