goyamusic

package module
v0.0.0-...-df012d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 19 Imported by: 0

README

goyamusic

Unofficial Yandex Music API client.

There's wonderful project written by MarshalX which I've used in python for a desktop player. Some workarounds with that package were needed at that time. Some time ago, I wanted to transfer it to Golang and make some improvements, but I found another MarshalX port of MarshalX published by Igorprostoff. Thanks a lot! So, Yandex music API client to be continued...

Golang port of yandex-music-api by MarshalX

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AndroidKey = []byte("p93jhgh689SBReK6ghtw62")

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token, baseUrl, language string, httpClient *http.Client) (*Client, error)

func (*Client) AccountSettings

func (c *Client) AccountSettings(ctx context.Context) (*ent.AccountSettings, error)

func (*Client) AccountStatus

func (c *Client) AccountStatus(ctx context.Context) (*ent.AccountStatus, error)

func (*Client) DownloadTrack

func (c *Client) DownloadTrack(ctx context.Context, t *ent.Track) error

func (*Client) Liked

func (c *Client) Liked(ctx context.Context, userId uint32, objType ObjType) (interface{}, error)

func (*Client) LosslessInfo

func (c *Client) LosslessInfo(ctx context.Context, trackId string) (*ent.TrackLosslessInfo, error)

func (*Client) PlaylistTracks

func (c *Client) PlaylistTracks(ctx context.Context, userId uint32, playlistKind string) ([]ent.TrackShort, error)

func (*Client) Playlists

func (c *Client) Playlists(ctx context.Context, userId uint32) ([]ent.Playlist, error)

func (*Client) PutAccountSettings

func (c *Client) PutAccountSettings(ctx context.Context, key string, value interface{}) (*ent.AccountSettings, error)

func (*Client) PutAccountSettingsMulti

func (c *Client) PutAccountSettingsMulti(ctx context.Context, data map[string]interface{}) (*ent.AccountSettings,
	error)

func (*Client) PutLikes

func (c *Client) PutLikes(ctx context.Context, userId uint32, objType ObjType, ids []int) error

func (*Client) Settings

func (c *Client) Settings(ctx context.Context) (*ent.Settings, error)

type ObjType

type ObjType string

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL