Documentation ¶
Overview ¶
Package gmusic provides methods to list and play music from Google Play Music.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GMusic ¶
func Login ¶
Login logs in with a username and password and androidID from a MAC address of the machine.
func LoginAndroid ¶
LoginAndroid logs in with a username and password and given androidID.
func (*GMusic) ListPlaylistEntries ¶
func (g *GMusic) ListPlaylistEntries() ([]*PlaylistEntry, error)
func (*GMusic) ListPlaylists ¶
func (*GMusic) ListTracks ¶
type ListPlaylistEntries ¶
type ListPlaylistEntries struct { Data struct { Items []*PlaylistEntry `json:"items"` } `json:"data"` Kind string `json:"kind"` NextPageToken string `json:"nextPageToken"` }
type ListPlaylists ¶
type ListTracks ¶
type Playlist ¶
type Playlist struct { AccessControlled bool `json:"accessControlled"` CreationTimestamp string `json:"creationTimestamp"` Deleted bool `json:"deleted"` ID string `json:"id"` Kind string `json:"kind"` LastModifiedTimestamp string `json:"lastModifiedTimestamp"` Name string `json:"name"` OwnerName string `json:"ownerName"` OwnerProfilePhotoUrl string `json:"ownerProfilePhotoUrl"` RecentTimestamp string `json:"recentTimestamp"` Type string `json:"type"` }
type PlaylistEntry ¶
type PlaylistEntry struct { AbsolutePosition string `json:"absolutePosition"` ClientId string `json:"clientId"` CreationTimestamp string `json:"creationTimestamp"` Deleted bool `json:"deleted"` ID string `json:"id"` Kind string `json:"kind"` LastModifiedTimestamp string `json:"lastModifiedTimestamp"` PlaylistId string `json:"playlistId"` Source string `json:"source"` TrackId string `json:"trackId"` }
type Settings ¶
type Settings struct { EntitlementInfo struct { ExpirationMillis int `json:"expirationMillis"` IsCanceled bool `json:"isCanceled"` IsSubscription bool `json:"isSubscription"` IsTrial bool `json:"isTrial"` } `json:"entitlementInfo"` Lab []struct { Description string `json:"description"` DisplayName string `json:"displayName"` Enabled bool `json:"enabled"` ExperimentName string `json:"experimentName"` } `json:"lab"` MaxUploadedTracks int `json:"maxUploadedTracks"` SubscriptionNewsletter bool `json:"subscriptionNewsletter"` UploadDevice []struct { DeviceType int `json:"deviceType"` ID string `json:"id"` LastAccessedFormatted string `json:"lastAccessedFormatted"` LastAccessedTimeMillis int `json:"lastAccessedTimeMillis"` LastEventTimeMillis int `json:"lastEventTimeMillis"` Name string `json:"name"` } `json:"uploadDevice"` }
type SettingsData ¶
type SettingsData struct {
Settings Settings `json:"settings"`
}
type Track ¶
type Track struct { Album string `json:"album"` AlbumArtRef []struct { URL string `json:"url"` } `json:"albumArtRef"` AlbumArtist string `json:"albumArtist"` AlbumId string `json:"albumId"` Artist string `json:"artist"` ArtistArtRef []struct { URL string `json:"url"` } `json:"artistArtRef"` ArtistId []string `json:"artistId"` ClientId string `json:"clientId"` CreationTimestamp string `json:"creationTimestamp"` Deleted bool `json:"deleted"` DiscNumber float64 `json:"discNumber"` DurationMillis string `json:"durationMillis"` EstimatedSize string `json:"estimatedSize"` ID string `json:"id"` Kind string `json:"kind"` LastModifiedTimestamp string `json:"lastModifiedTimestamp"` Nid string `json:"nid"` PlayCount float64 `json:"playCount"` RecentTimestamp string `json:"recentTimestamp"` StoreId string `json:"storeId"` Title string `json:"title"` TrackNumber float64 `json:"trackNumber"` TrackType string `json:"trackType"` Year float64 `json:"year"` }
Click to show internal directories.
Click to hide internal directories.