1.0.0 • Published 5 years ago

spot-track v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

spot-track

A simple library to be used in demos. Grabs the preview url from Spotify's search API endpoint for a given track name.

Usage

const SpotTrack = require('./index')

const s = new SpotTrack('YOUR_SPOTIFY_CLIENT_ID', 'YOUR_SPOTIFY_CLIENT_SECRET')

async function main() {
  try {
    const track = await s.getTrack('never gonna give')
    console.log(track)
  } catch (err) {
    console.error(err)
  }
}

main()
1.0.0

5 years ago

0.0.1

9 years ago