[DEPRECATED] node-spotilocal
Simple wrapper class for Spotify app local webserver.
Install
Via npm [package]:
$ npm install node-spotilocal
Via yarn [package]:
$ yarn add node-spotilocal
Usage
const Spotilocal = require("node-spotilocal");
const spotify = new Spotilocal();
spotify._auth().then(tokens => {
}).catch(console.error);
spotify.play("spotify:track:1qCQTy0fTXerET4x8VHyr9").then(console.log).catch(console.error);
spotify.pause().then(console.log).catch(console.error);
spotify.unpause().then(console.log).catch(console.error);
spotify.status(["login", "logout", "play", "pause", "error", "ap"], 0).then(console.log).catch(console.error);
spotify._revoke();
License
MIT