spotify

package
v0.0.0-...-953d1ae Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSongsToPlaylist

func AddSongsToPlaylist(client *http.Client, playlistID string, songURIS string) []byte

func CheckError

func CheckError(err error)

func CreatePlaylist

func CreatePlaylist(client *http.Client, method string) (string, string)

func SearchSong

func SearchSong(client *http.Client, method string, query string) string

Types

type PlaylistDetails

type PlaylistDetails struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Public      bool   `json:"public"`
}

structure of POST data to create new playlist

type PlaylistResponse

type PlaylistResponse struct {
	ExternalUrls struct {
		Spotify string `json:"spotify"`
	} `json:"external_urls"`
	ID string `json:"id"`
}

type TrackResponse

type TrackResponse struct {
	Tracks struct {
		Items []struct {
			URI string `json:"uri"`
		} `json:"items"`
	} `json:"tracks"`
}

Jump to

Keyboard shortcuts

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