tracks

package
v0.0.0-...-185a339 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetByID

func GetByID(id int64) (*musixmatch.Tracks, error)

GetByID returns a single track by ID.

func GetByMBID

func GetByMBID(mbid string) (*musixmatch.Tracks, error)

Get uses the backend client to retrieve a single track by MBID.

func GetLyric

func GetLyric(params *musixmatch.TrackLyricsParams) (*musixmatch.LyricInfo, error)

GetLyric uses the backend client to retrieve a single track lyric info.

func GetLyricByID

func GetLyricByID(id int64) (*musixmatch.LyricInfo, error)

GetLyricByID retrieves a track lyric by ID.

func Search(params *musixmatch.TrackListParams) (*musixmatch.TrackList, error)

Search uses the backend client to search for specific tracks.

Types

type Client

type Client struct {
	Backend musixmatch.BackendService
	Key     string
}

Client sets the Backend that implements BackendService and the API Key

func (Client) Get

func (c Client) Get(params *musixmatch.TrackGetParams) (*musixmatch.Tracks, error)

Get hits track.get endpoint and returns a single track by ID.

func (Client) GetLyric

func (c Client) GetLyric(params *musixmatch.TrackLyricsParams) (*musixmatch.LyricInfo, error)

GetLyric hits track.lyrics.get endpoint and returns information about where to request the lyrics for a specific track.

func (Client) Search

func (c Client) Search(params *musixmatch.TrackListParams) (*musixmatch.TrackList, error)

Search hits track.search endpoint and returns a list of Tracks that fits the search params

Jump to

Keyboard shortcuts

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