Skip to content

eddiezane/spot-track

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

npm install spot-track
const SpotTrack = require('spot-track')

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()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published