[DEPRECATED] node-spotilocal
Simple wrapper class for Spotify app local webserver.
Install
$ npm install node-spotilocal
$ yarn add node-spotilocal
Usage
// require libconst Spotilocal = ; // init libconst spotify = ; // [optional] get auth tokens from Spotify app or auth process will execute with first requestspotify; // play trackspotify; // pause trackspotify; // unpause trackspotify; // get app status on particular events (default: ["login", "logout", "play", "pause", "error", "ap"]) or after X seconds (default: 0; 0 = disabled)spotifystatus"login" "logout" "play" "pause" "error" "ap" 0; // [optional] revoke auth tokensspotify;