spotify

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	AccessToken                    string `json:"access_token"`
	AccessTokenExpirationTimestamp time.Time
	TokenType                      string `json:"token_type"`
	ExpiresIn                      int64  `json:"expires_in"`
}

Client represents a Spotify Client

func NewClient

func NewClient() (client *Client, err error)

NewClient returns new Spotify Client

func (*Client) SearchTrack

func (client *Client) SearchTrack(track, artist, album, isrc string) (sTrack, sArtist, sAlbum, sISRC, sURI string, err error)

SearchTrack returns a Spotify track with provided fields

func (*Client) SearchTrackQuery

func (client *Client) SearchTrackQuery(query string) (sTrack, sArtist, sAlbum, sISRC, sURI string, err error)

SearchTrackQuery returns a Spotify track with provided query

Jump to

Keyboard shortcuts

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