spotify-get

1.1.10 • Public • Published

spotify-get

npm i spotify-get

example

//Top of your main file
const Spotify = require('spotify-get');
//Client event config
client.sclient = new Spotify({
consumer: {
key: "Your spotify client id",
secret: "Your spotify secret"
}});
//search track
const data = await client.sclient.search({
q: `SAD`,
type: "track",
limit: 5
});
//get metadata
data?.tracks.items[0]

Package Sidebar

Install

npm i spotify-get

Weekly Downloads

3

Version

1.1.10

License

MIT

Unpacked Size

26.7 kB

Total Files

16

Last publish

Collaborators

  • ronstufer