Documentation
¶
Overview ¶
Package api provides the HTTP client for the SomaFM API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SomaFMClient ¶
type SomaFMClient struct {
// contains filtered or unexported fields
}
SomaFMClient is the HTTP client for interacting with the SomaFM API.
func NewSomaFMClient ¶
func NewSomaFMClient() *SomaFMClient
NewSomaFMClient creates a new SomaFM API client with sensible defaults.
func (*SomaFMClient) GetCurrentTrackForStation ¶
func (c *SomaFMClient) GetCurrentTrackForStation(stationID string) (string, error)
func (*SomaFMClient) GetRecentSongs ¶
func (c *SomaFMClient) GetRecentSongs(stationID string) (*SongsResponse, error)
GetRecentSongs fetches the recent song history for a specific station.
func (*SomaFMClient) GetStations ¶
func (c *SomaFMClient) GetStations() ([]station.Station, error)
GetStations fetches the list of available radio stations from the SomaFM API.
type SongsResponse ¶
Click to show internal directories.
Click to hide internal directories.