Documentation
¶
Overview ¶
Package api interacts with the spotify api
Index ¶
- Variables
- type Album
- type Artist
- type Client
- func (c *Client) AlbumGet(ctx context.Context, user model.User, spotifyID string) (Album, error)
- func (c *Client) AlbumGetAll(ctx context.Context, user model.User, albumIDs []string) ([]Album, error)
- func (c *Client) AlbumGetTrackAll(ctx context.Context, user model.User, spotifyID string) ([]Track, error)
- func (c *Client) AlbumGetUser(ctx context.Context, user model.User) ([]Album, error)
- func (c *Client) ArtistGet(ctx context.Context, user model.User, spotifyID string) (Artist, error)
- func (c *Client) ArtistGetAll(ctx context.Context, user model.User, artistIDs []string) ([]Artist, error)
- func (c *Client) ImageGet(ctx context.Context, url string) ([]byte, error)
- func (c *Client) NewUser(ctx context.Context, user model.User, accessToken, refreshToken string, ...) error
- func (c *Client) PlayerGetCurrent(ctx context.Context, user model.User) (Current, error)
- func (c *Client) PlayerGetHistory(ctx context.Context, user model.User) ([]History, error)
- func (c *Client) PlaylistDeleteTrackAll(ctx context.Context, user model.User, spotifyID, snapshotID string, ...) error
- func (c *Client) PlaylistGet(ctx context.Context, user model.User, spotifyID string) (Playlist, error)
- func (c *Client) PlaylistGetTrackAll(ctx context.Context, user model.User, spotifyID string) ([]Track, error)
- func (c *Client) PlaylistGetUser(ctx context.Context, user model.User) ([]Playlist, error)
- func (c *Client) PlaylistPostTrackAll(ctx context.Context, user model.User, spotifyID string, tracks []model.Track) error
- func (c *Client) ShowGet(ctx context.Context, user model.User, spotifyID string) (Show, error)
- func (c *Client) ShowGetAll(ctx context.Context, user model.User, showsIDs []string) ([]Show, error)
- func (c *Client) ShowGetUser(ctx context.Context, user model.User) ([]Show, error)
- func (c *Client) TrackGet(ctx context.Context, user model.User, spotifyID string) (Track, error)
- func (c *Client) TrackGetAll(ctx context.Context, user model.User, trackIDs []string) ([]Track, error)
- func (c *Client) UserGet(ctx context.Context, user, spotifyUser model.User) (model.User, error)
- type Context
- type Current
- type History
- type Image
- type Playlist
- type Show
- type Track
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Artist ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AlbumGetAll ¶
func (*Client) AlbumGetTrackAll ¶
func (*Client) AlbumGetUser ¶
func (*Client) ArtistGetAll ¶
func (*Client) PlayerGetCurrent ¶
func (*Client) PlayerGetHistory ¶
func (*Client) PlaylistDeleteTrackAll ¶
func (*Client) PlaylistGet ¶
func (*Client) PlaylistGetTrackAll ¶
func (*Client) PlaylistGetUser ¶
func (*Client) PlaylistPostTrackAll ¶
func (*Client) ShowGetAll ¶
func (*Client) ShowGetUser ¶
func (*Client) TrackGetAll ¶
type History ¶
type Playlist ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.