apis

package
v0.0.0-...-5f0ac47 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Album

type Album struct {
	Release     string
	AlbumName   string
	AristName   string
	Image       string
	TotalTracks int
	Tracks      string
}

type Artist

type Artist struct {
	Name       string
	Follower   int
	Genres     string
	Image      string
	Albums     string
	TopTracks  string
	Popularity int
}

type Spotify

type Spotify struct {
	ID     string
	Secret string
	Token  string
}

Spotify Structs for the Spotify API requests

func NewSpotify

func NewSpotify(id, secret string) *Spotify

func (*Spotify) Auth

func (spotify *Spotify) Auth() bool

func (*Spotify) SearchAlbum

func (spotify *Spotify) SearchAlbum(album string, count int) []Album

func (*Spotify) SearchArtist

func (spotify *Spotify) SearchArtist(artist string) *Artist

type Urban

type Urban struct {
	Word       string
	Definition string
	Link       string
	ThumbsUp   int
	ThumbsDown int
	Author     string
	Date       string
	Example    string
}

Urban Structs for the Urban API requests

func UrbanGetRandom

func UrbanGetRandom(term string) *Urban

Jump to

Keyboard shortcuts

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