Documentation
¶
Index ¶
- func NewClient() *client
- type AddFeedbackRequest
- type AddFeedbackResponse
- type AddTiredRequest
- type AddTiredResponse
- type Client
- type FragmentRequestReason
- type GetPlaylistFragmentRequest
- type GetPlaylistFragmentResponse
- type LegacyPartnerLoginRequest
- type LegacyPartnerLoginResponse
- type LegacyPartnerLoginResponseResult
- type LegacyRequest
- type LegacyResponse
- type LegacyUserLoginRequest
- type LegacyUserLoginResponse
- type LegacyUserLoginResponseResult
- type LoginRequest
- type LoginResponse
- type NarrativeRequest
- type StationRequest
- type StationResponse
- type StationSortOrder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddFeedbackRequest ¶
type AddFeedbackResponse ¶
type AddTiredRequest ¶
type AddTiredRequest struct {
TrackToken string `json:"trackToken"`
}
type AddTiredResponse ¶
type AddTiredResponse struct{}
type Client ¶
type Client interface { Login(username, password string) error GetStations() ([]pandora.Station, error) GetMoreTracks(stationId string) ([]pandora.Track, error) AddFeedback(trackToken string, isPositive bool) error AddTired(trackToken string) error GetNarrative(stationId, musicId string) (pandora.Narrative, error) }
Client implements the Pandora REST API defined in https://6xq.net/pandora-apidoc/rest
type FragmentRequestReason ¶
type FragmentRequestReason string
const ( FragmentRequestReasonNormal FragmentRequestReason = "Normal" FragmentRequestReasonString FragmentRequestReason = "Skip" )
type GetPlaylistFragmentRequest ¶
type GetPlaylistFragmentRequest struct { StationID string `json:"stationId"` IsStationStart bool `json:"isStationStart"` FragmentRequestReason FragmentRequestReason `json:"fragmentRequestReason"` AudioFormat pandora.AudioFormat `json:"audioFormat"` StartingAtTrackId *string `json:"startingAtTrackId"` OnDemandArtistMessageArtistUidHex *string `json:"onDemandArtistMessageArtistUidHex"` OnDemandArtistMessageIdHex *string `json:"onDemandArtistMessageIdHex"` }
type LegacyPartnerLoginRequest ¶
type LegacyPartnerLoginRequest struct { LegacyRequest Username string `json:"username"` Password string `json:"password"` DeviceModel string `json:"deviceModel"` Version string `json:"version"` IncludeURLs bool `json:"includeUrls"` ReturnDeviceType bool `json:"returnDeviceType"` ReturnUpdatePromptVersions bool `json:"returnUpdatePromptVersions"` }
type LegacyPartnerLoginResponse ¶
type LegacyPartnerLoginResponse struct { LegacyResponse Result LegacyPartnerLoginResponseResult `json:"result"` }
type LegacyRequest ¶
type LegacyRequest struct {
SyncTime int64 `json:"syncTime,omitempty"`
}
type LegacyResponse ¶
type LegacyResponse struct {
Stat string `json:"stat"`
}
type LegacyUserLoginRequest ¶
type LegacyUserLoginRequest struct { LegacyRequest LoginType string `json:"loginType"` Username string `json:"username"` Password string `json:"password"` PartnerAuthToken string `json:"partnerAuthToken"` }
type LegacyUserLoginResponse ¶
type LegacyUserLoginResponse struct { LegacyResponse Result LegacyUserLoginResponseResult `json:"result"` }
type LegacyUserLoginResponseResult ¶
type LegacyUserLoginResponseResult struct {
UserAuthToken string `json:"userAuthToken"`
}
type LoginRequest ¶
type LoginResponse ¶
type NarrativeRequest ¶
type StationRequest ¶
type StationResponse ¶
type StationResponse struct { TotalStations int `json:"totalStations"` SortedBy StationSortOrder `json:"sortedBy"` Index int `json:"index"` Stations []pandora.Station `json:"stations"` }
type StationSortOrder ¶
type StationSortOrder string
const StationSortOrderLastPlayed StationSortOrder = "lastPlayedTime"
Click to show internal directories.
Click to hide internal directories.