Discover Packages
github.com/topvennie/sortifyr
internal
spotifyapi
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jan 7, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 19
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package spotifyapi interacts with the spotify api
type Album struct {
SpotifyID string `json:"id"`
Name string `json:"name"`
TrackAmount int `json:"total_tracks"`
Popularity int `json:"popularity"`
Images []Image `json:"images"`
Artists []Artist `json:"artists"`
}
type Artist struct {
SpotifyID string `json:"id"`
Name string `json:"name"`
Followers struct {
Total int `json:"total"`
} `json:"followers"`
Popularity int `json:"popularity"`
Images []Image `json:"images"`
}
type Context struct {
Type string `json:"type"`
URI string `json:"uri"`
}
type Current struct {
Track Track `json:"item"`
ProgressMs int `json:"progress_ms"`
IsPlaying bool `json:"is_playing"`
Context Context `json:"context"`
}
type History struct {
Track Track `json:"track"`
PlayedAt time .Time `json:"played_at"`
Context Context `json:"context"`
}
type Image struct {
URL string `json:"url"`
Height int `json:"height"`
Width int `json:"width"`
}
type Playlist struct {
SpotifyID string `json:"id"`
Owner struct {
UID string `json:"id"`
DisplayName string `json:"display_name"`
} `json:"owner"`
Name string `json:"name"`
Description string `json:"description"`
Public *bool `json:"public"`
Tracks struct {
Total int `json:"total"`
} `json:"tracks"`
Collaborative *bool `json:"collaborative"`
Images []Image `json:"images"`
SnapshotID string `json:"snapshot_id"`
}
type Show struct {
SpotifyID string `json:"id"`
Name string `json:"name"`
EpisodeAmount int `json:"total_episodes"`
Images []Image `json:"images"`
}
type Track struct {
SpotifyID string `json:"id"`
Name string `json:"name"`
Popularity int `json:"popularity"`
Artists []Artist `json:"artists"`
DurationMs int `json:"duration_ms"`
LinkedFrom struct {
SpotifyID string `json:"id"`
} `json:"linked_from"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.